Closed Bug 569342 Opened 14 years ago Closed 14 years ago

Find bar should not be enabled in about:addons

Categories

(Toolkit :: Add-ons Manager, enhancement)

enhancement
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla2.0b10
Tracking Status
blocking2.0 --- final+

People

(Reporter: john.p.baker, Assigned: Margaret)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete, Whiteboard: [AddonsRewrite][softblocker])

Attachments

(2 files, 2 obsolete files)

1. Tools / Add-ons 2. '/' to find in page findbar shows but any text gives "Phrase not found". Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.3a5pre) Gecko/20100531 Minefield/3.7a5pre
We haven't had this feature in the old add-ons manager because it was in its own window. Looks like this is a valid feature request now.
Severity: normal → enhancement
OS: Windows 2000 → All
Hardware: x86 → All
Whiteboard: [AddonsRewrite]
(In reply to comment #1) > We haven't had this feature in the old add-ons manager because it was in its > own window. Looks like this is a valid feature request now. Either an enhancement or an error that the findbar shows - I intentionally skipped mentioning any expected results.
It should be noted that "find as you type" works perfectly in Firefox 3.6's download manager, when it's loaded in a tab: chrome://mozapps/content/downloads/downloads.xul The search bar in the download manager also works perfectly.
Assignee: nobody → dtownsend
Blocks: 569096, 550048
Summary: FAYT does not work on about:addons → Find bar should not be enabled in about:addons
blocking2.0: --- → final+
Dave, we only restrict FAYT when the focus is in the search field. If we have focused other areas it would be fantastic to find elements you are looking for. Lets say you have opened the list of extensions and about 40 are installed. Just typing "noscript" should jump to the extension.
(In reply to comment #6) > Dave, we only restrict FAYT when the focus is in the search field. If we have > focused other areas it would be fantastic to find elements you are looking for. > > Lets say you have opened the list of extensions and about 40 are installed. > Just typing "noscript" should jump to the extension. Short of someone who's actually going to fix the find bar for this UI I intend to instead disable it completely and just hook up the keyboard events that would trigger the find bar to focus the search box.
Attached patch patch rev 1 (deleted) — Splinter Review
Adds an optional property disablefastfind that documents in about: or chrome: urls can use to disable the find bar for themselves. Adds it to about:config and about:addons and tests that it works.
Attachment #449289 - Flags: review?(gavin.sharp)
Status: NEW → ASSIGNED
Comment on attachment 449289 [details] [diff] [review] patch rev 1 >diff --git a/toolkit/content/widgets/findbar.xml b/toolkit/content/widgets/findbar.xml >+ // disable FAYT in about:blank to prevent FAYT opening unexpectedly. >+ // Fixes bugs 264562 and bug 269712 >+ // disable FAYT in documents that ask for it to be disabled. Fixed >+ // bug 267150 and bug 569342 I'd just remove the bug # references entirely - getting them from blame is sufficient (there's nothing particularly insightful in the bugs, and the reasoning is pretty obvious). >+ if ((url.schemeIs("about") || url.schemeIs("chrome")) && >+ (win.document.documentElement && >+ win.document.documentElement.getAttribute("disablefastfind") == "true")) >+ return; return false;
Attachment #449289 - Flags: review?(gavin.sharp) → review+
Landed: http://hg.mozilla.org/mozilla-central/rev/33760547ecf7 Filed bug 570760 to get the keyboard shortcuts hooked up to the search box.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Flags: in-litmus-
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a5
Backed out as this causes a test failure.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
We need the test fixes from bug 567306 before we can land the test for this.
Depends on: 567306
No longer blocks: 569096
Blocks: 569096
Status: REOPENED → ASSIGNED
Whiteboard: [AddonsRewrite] → [AddonsRewrite][has patch][waiting on 567306]
Whiteboard: [AddonsRewrite][has patch][waiting on 567306] → [AddonsRewrite][has patch][needs 567306]
Whiteboard: [AddonsRewrite][has patch][needs 567306] → [AddonsRewrite][has patch][needs 567306][softblocker]
Whiteboard: [AddonsRewrite][has patch][needs 567306][softblocker] → [AddonsRewrite][has patch][needs 567306][soft blocker]
Landed but renamed the test so it runs later and doesn't break browser_typeAheadFind.js. Would probably be good to rename that back afterwards. http://hg.mozilla.org/mozilla-central/rev/e2e5b5e57ca4
Status: ASSIGNED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Whiteboard: [AddonsRewrite][has patch][needs 567306][soft blocker] → [AddonsRewrite][soft blocker]
Target Milestone: mozilla1.9.3a5 → mozilla2.0b10
Whiteboard: [AddonsRewrite][soft blocker] → [AddonsRewrite][softblocker]
Ctrl-f is supposed to still work?
Nope
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch follow-up patch (to disable find command) (obsolete) (deleted) — Splinter Review
I'm running into a problem with this patch, but I feel like it might be a separate issue. The "Find..." menuitem in the Firefox button menu is not correctly observing the disabled attribute, even though the keyboard shortcut and the menuitem in the menubar are. Other than that, this patch seems to do the job correctly.
Attachment #504938 - Flags: feedback?(dtownsend)
Comment on attachment 504938 [details] [diff] [review] follow-up patch (to disable find command) I think you also want to disable the cmd_findAgain and cmd_findPrevious commands. I don't really know why the menu wouldn't be responding to this though. Maybe gavin knows?
Attachment #504938 - Flags: feedback?(dtownsend) → feedback-
Over to Margaret for the last mile
Assignee: dtownsend → margaret.leibovic
Attached patch follow-up patch v2 (obsolete) (deleted) — Splinter Review
The disabled appmenu menuitem is a separate issue, so I filed bug 627136. Gavin says we shouldn't worry about it here, and instead just fix the problem in bug 627136.
Attachment #504938 - Attachment is obsolete: true
Attachment #505174 - Flags: review?(dtownsend)
Comment on attachment 505174 [details] [diff] [review] follow-up patch v2 Looks good to me, technically I'm not a browser peer so just check that gavin is ok with me reviewing it. This does want a test though.
Attachment #505174 - Flags: review?(dtownsend) → review+
Comment on attachment 505174 [details] [diff] [review] follow-up patch v2 -I think you need to handle aLocationURI being null -nit: local var for content.document.documentElement? -nit: put if condition in a boolean, have only one forEach with the if/else inside it?
Attached patch updated patch v3 (with test) (deleted) — Splinter Review
Addressed Gavin's comments and added a test. I had to modify the test file to change the selected tab after the page loaded because there were some timing problems with the location change event. I think it should be more reliable this way.
Attachment #505174 - Attachment is obsolete: true
Attachment #505303 - Flags: review?(gavin.sharp)
Comment on attachment 505303 [details] [diff] [review] updated patch v3 (with test) r+ with the nits discussed IRL
Attachment #505303 - Flags: review?(gavin.sharp) → review+
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Documented the disablefastfind attribute here: https://developer.mozilla.org/en/XUL/Attribute/disablefastfind And it's linked to from: https://developer.mozilla.org/en/XUL/window And mentioned on Fx4 for developers.
Build identifier: Mozilla/5.0 (Windows NT 6.1; rv:2.0b10) Gecko/20100101 Firefox/4.0b10 I can not open find bar on addons manager. Edit > Find is disabled and the shortcut keys don't work. Is this a new bug?
The find bar is still available on Windows 7 from the firefox button. I assume it should be disabled like the ctrl+F and the Edit, Find menu bar entry. Mozilla/5.0 (Windows NT 6.1; rv:2.0b10pre) Gecko/20110122 Firefox/4.0b10pre 20110122030336 7b396ca54953
(In reply to comment #28) > I can not open find bar on addons manager. Edit > Find is disabled and the > shortcut keys don't work. Is this a new bug? The purpose of this bug was to disable those things, it is intentional. (In reply to comment #29) > The find bar is still available on Windows 7 from the firefox button. I assume > it should be disabled like the ctrl+F and the Edit, Find menu bar entry. As mentioned in comment 21 that is bug 627136
Verified fixed with Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b10pre) Gecko/20110121 Firefox/4.0b10pre
Status: RESOLVED → VERIFIED
(In reply to comment #30) > (In reply to comment #28) > > I can not open find bar on addons manager. Edit > Find is disabled and the > > shortcut keys don't work. Is this a new bug? > > The purpose of this bug was to disable those things, it is intentional. Oh yes, sorry for the misunderstanding.
Status: VERIFIED → RESOLVED
Closed: 14 years ago14 years ago
Status: RESOLVED → VERIFIED
Depends on: 632233
This is silly Open a new tab Hit Ctrl+F Open add-on manager from the Firefox Button Result: Findbar is visible.
(In reply to comment #33) > This is silly > Open a new tab > Hit Ctrl+F > Open add-on manager from the Firefox Button > > Result: Findbar is visible. That is a separate issue. Please see bug 627136.
Depends on: 570773
Depends on: 1196351
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: