Closed Bug 869334 Opened 12 years ago Closed 12 years ago

Find bar should auto-hide in customization mode

Categories

(Firefox :: Toolbars and Customization, enhancement)

enhancement
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 28

People

(Reporter: u428464, Assigned: jaws)

References

Details

Attachments

(1 file, 3 obsolete files)

The find bar currently stays open when entering customization mode, but it isn't a customization area. It should auto-hide in customization mode.
Blocks: 869104
Well, this patch should work.... but it doesn't. Seems like something is broken on UX branch, as its not working as expected on about:addons either (cmd_find etc don't get disabled). Also, I should note that the disablefastfind attribute only disables the find commands - if the find bar is already showing, it won't autohide. I think it should... but there's an existing bug in the handling of disablefastfind, IMO.
Status: UNCONFIRMED → NEW
Ever confirmed: true
(In reply to Blair McBride [:Unfocused] (Limited availability.) from comment #1) > Created attachment 746284 [details] [diff] [review] > Patch v1 - doesn't work :( > > Well, this patch should work.... but it doesn't. Seems like something is > broken on UX branch, as its not working as expected on about:addons either > (cmd_find etc don't get disabled). If I open about:addons on the UX branch, I cannot get Ctrl+F to open the find bar, so as far as I can tell, it's still working.
(In reply to Jared Wein [:jaws] from comment #2) > (In reply to Blair McBride [:Unfocused] (Limited availability.) from comment > #1) > > Created attachment 746284 [details] [diff] [review] > > Patch v1 - doesn't work :( > > > > Well, this patch should work.... but it doesn't. Seems like something is > > broken on UX branch, as its not working as expected on about:addons either > > (cmd_find etc don't get disabled). > > If I open about:addons on the UX branch, I cannot get Ctrl+F to open the > find bar, so as far as I can tell, it's still working. Yes, but the problem is that the find bar isn't dismissed like before (open the find bar and then open the add-ons manager : the find bar is still visible).
Attached patch Patch v1.1 (obsolete) — Splinter Review
This fixes it for all pages that have requested to disablefastfind.
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Attachment #746414 - Flags: review?(bmcbride)
(In reply to Guillaume C. [:ge3k0s] from comment #3) > (In reply to Jared Wein [:jaws] from comment #2) > > (In reply to Blair McBride [:Unfocused] (Limited availability.) from comment > > #1) > > > Created attachment 746284 [details] [diff] [review] > > > Patch v1 - doesn't work :( > > > > > > Well, this patch should work.... but it doesn't. Seems like something is > > > broken on UX branch, as its not working as expected on about:addons either > > > (cmd_find etc don't get disabled). > > > > If I open about:addons on the UX branch, I cannot get Ctrl+F to open the > > find bar, so as far as I can tell, it's still working. > > Yes, but the problem is that the find bar isn't dismissed like before (open > the find bar and then open the add-ons manager : the find bar is still > visible). I've never seen it get dismissed before when entering the add-ons manager. Can you point me to a build that does?
(In reply to Jared Wein [:jaws] from comment #5) > (In reply to Guillaume C. [:ge3k0s] from comment #3) > > (In reply to Jared Wein [:jaws] from comment #2) > > > (In reply to Blair McBride [:Unfocused] (Limited availability.) from comment > > > #1) > > > > Created attachment 746284 [details] [diff] [review] > > > > Patch v1 - doesn't work :( > > > > > > > > Well, this patch should work.... but it doesn't. Seems like something is > > > > broken on UX branch, as its not working as expected on about:addons either > > > > (cmd_find etc don't get disabled). > > > > > > If I open about:addons on the UX branch, I cannot get Ctrl+F to open the > > > find bar, so as far as I can tell, it's still working. > > > > Yes, but the problem is that the find bar isn't dismissed like before (open > > the find bar and then open the add-ons manager : the find bar is still > > visible). > > I've never seen it get dismissed before when entering the add-ons manager. > Can you point me to a build that does? My bad I thought it was the default behavior since the find bar is useless in the add-ons manager.
Comment on attachment 746414 [details] [diff] [review] Patch v1.1 This unintentionally initializes the findbar because it doesn't use gFindBarInitialized. I'm not sure why you're setting an attribute on gFindBar to keep track of whether it used to be open -- presumably you could make this a private property of XULBrowserWindow.
Attachment #746414 - Flags: review-
Attached patch Patch v1.2 (obsolete) — Splinter Review
Attachment #746284 - Attachment is obsolete: true
Attachment #746414 - Attachment is obsolete: true
Attachment #746414 - Flags: review?(bmcbride)
Attachment #746486 - Flags: review?(dao)
(In reply to Jared Wein [:jaws] from comment #2) > (In reply to Blair McBride [:Unfocused] (Limited availability.) from comment > #1) > > Created attachment 746284 [details] [diff] [review] > > Patch v1 - doesn't work :( > > > > Well, this patch should work.... but it doesn't. Seems like something is > > broken on UX branch, as its not working as expected on about:addons either > > (cmd_find etc don't get disabled). > > If I open about:addons on the UX branch, I cannot get Ctrl+F to open the > find bar, so as far as I can tell, it's still working. *sigh* Yea, seems I had a partially broken tree. Clobbering and rebuilding fixed it.
Comment on attachment 746486 [details] [diff] [review] Patch v1.2 Review of attachment 746486 [details] [diff] [review]: ----------------------------------------------------------------- I'm not familiar enough with this code to comment on the patch itself.... but it does beg for an addition to browser_zbug569342.js (not my typo!).
Attached patch Patch v1.3 (with test added) (obsolete) — Splinter Review
Thanks for the link to the test Blair :)
Attachment #746486 - Attachment is obsolete: true
Attachment #746486 - Flags: review?(dao)
Attachment #746752 - Flags: review?(dao)
Comment on attachment 746752 [details] [diff] [review] Patch v1.3 (with test added) >@@ -3457,16 +3457,21 @@ var XULBrowserWindow = { > statusText: "", > isBusy: false, > // The pages in this array should be kept in sync with what pages that > // panelUIOverlay.xul is set to overlay in > // browser/components/customizableui/content/jar.mn > inContentWhitelist: ["about:addons", "about:downloads", "about:permissions", > "about:sync-progress", "about:preferences"], > >+ // The findbar is temporarily hidden when viewing pages that have >+ // disablefastfind set. The findbar state is restored when viewing >+ // non-disablefastfind pages. >+ findbarTemporarilyHidden: false, >+ You can drop this. >+ if (gFindBarInitialized) { >+ if (!gFindBar.hidden && aDisable) { >+ gFindBar.hidden = true; >+ XULBrowserWindow.findbarTemporarilyHidden = true; >+ } else if (XULBrowserWindow.findbarTemporarilyHidden && !aDisable) { >+ gFindBar.hidden = false; >+ XULBrowserWindow.findbarTemporarilyHidden = false; >+ } >+ } Can you bind this function and use 'this' rather than XULBrowserWindow? Also please rename findbarTemporarilyHidden to _findbarTemporarilyHidden. I'd actually prefer if everything but the aboutCustomizing.xhtml change was in a separate patch (and bug) that can land on mozilla-central directly.
Comment on attachment 746284 [details] [diff] [review] Patch v1 (original patch) This patch will work as expected once bug 869919 is landed. It also blocks the find commands from working, and that part doesn't have to wait until bug 869919 lands.
Attachment #746284 - Attachment description: Patch v1 - doesn't work :( → Patch v1 (original patch)
Attachment #746284 - Attachment is obsolete: false
Attachment #746284 - Flags: review+
Attachment #746752 - Attachment is obsolete: true
Attachment #746752 - Flags: review?(dao)
Whiteboard: [fixed in jamun] → [fixed in jamun][fixed in ux]
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed in jamun][fixed in ux]
Target Milestone: --- → Firefox 28
Keywords: verifyme
The find bar is hidden in Customization mode in latest Nightly 29.0a1 (20140203030203) under Win 7 64-bit, Ubuntu 32-bit and Mac OSX 10.9. Can't be verified on Aurora 28.0a2 since Australis was backed out there.
Status: RESOLVED → VERIFIED
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: