Closed Bug 892384 Opened 12 years ago Closed 12 years ago

When switching to a tab with an open find bar, focus it

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 25

People

(Reporter: dao, Assigned: unusualtears)

References

Details

Attachments

(1 file, 1 obsolete file)

There's code in tabbrowser.xml to keep the global find bar focused when switching tabs, but it stopped working with the landing of bug 537013. I think we should simply replace it with focusing the tab-specific find bar when switching to a tab.
Also added a test.
Assignee: nobody → unusualtears
Status: NEW → ASSIGNED
Attachment #774269 - Flags: review?(dao)
Comment on attachment 774269 [details] [diff] [review] Change code to set focus instead of check it >+ // If the find bar is visible, focus it. >+ if (gFindBarInitialized && !gFindBar.hidden) { >+ gFindBar._findField.focus(); > break; >+ } s/visible/open/ Thanks!
Attachment #774269 - Flags: review?(dao) → review+
Pushed to try (atop the patch of bug 891638 because it isn't on m-c yet): https://tbpl.mozilla.org/?tree=Try&rev=8f57f4f9a9f8
Attachment #774269 - Attachment is obsolete: true
Keywords: checkin-needed
Depends on: 892926
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 25
While testing for the pre-beta sign-off of the Find Bar Redesign feature, I tried to verify this bug with the latest Aurora (build ID: 20130903004001), and this works as expected on Win 7 32-bit, Mac OS X 10.7.5 and Ubuntu 13.04 32-bit.
Status: RESOLVED → VERIFIED
QA Contact: manuela.muntean
See Also: → 1242241
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: