Closed Bug 783103 Opened 12 years ago Closed 12 years ago

Avoid layout flush from isElementVisible when attempting to focus the URL bar or search bar

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 17

People

(Reporter: dao, Assigned: dao)

References

Details

(Keywords: perf, Whiteboard: [snappy])

Attachments

(1 file)

Attached patch patch (deleted) — Splinter Review
No description provided.
Attachment #652247 - Flags: review?(gavin.sharp)
In which cases does isElementVisible(gURLBar) return false (assuming gURLBar is non-null)? Is that only when the url bar is on a hidden toolbar? Is gURLBar.focus() always guaranteed to be a no-op in all of those cases?
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #1) > In which cases does isElementVisible(gURLBar) return false (assuming gURLBar > is non-null)? Is that only when the url bar is on a hidden toolbar? That and in certain popups if dom.disable_window_open_feature.location is false. > Is gURLBar.focus() always guaranteed to be a no-op in all of those cases? Yes. However, gURLBar.focused can report true if the URL bar was focused when it got hidden and the user hasn't manually focused something else (bug 570835).
Keywords: perf
Whiteboard: [snappy]
Attachment #652247 - Flags: review?(enndeakin)
Attachment #652247 - Flags: review?(gavin.sharp) → review+
Attachment #652247 - Flags: review?(enndeakin)
Of course, I meant to change flag for my name, not Gavin's
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 17
This patch caused Bug 784621.
Depends on: 784621
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: