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)
Toolkit
Add-ons Manager
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)
(deleted),
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
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
Comment 1•14 years ago
|
||
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]
Reporter | ||
Comment 2•14 years ago
|
||
(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.
Updated•14 years ago
|
Updated•14 years ago
|
blocking2.0: --- → final+
Comment 6•14 years ago
|
||
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.
Comment 7•14 years ago
|
||
(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.
Comment 8•14 years ago
|
||
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)
Updated•14 years ago
|
Status: NEW → ASSIGNED
Comment 9•14 years ago
|
||
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+
Comment 10•14 years ago
|
||
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
Comment 11•14 years ago
|
||
Backed out as this causes a test failure.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 12•14 years ago
|
||
We need the test fixes from bug 567306 before we can land the test for this.
Depends on: 567306
Updated•14 years ago
|
Status: REOPENED → ASSIGNED
Updated•14 years ago
|
Whiteboard: [AddonsRewrite] → [AddonsRewrite][has patch][waiting on 567306]
Updated•14 years ago
|
Whiteboard: [AddonsRewrite][has patch][waiting on 567306] → [AddonsRewrite][has patch][needs 567306]
Updated•14 years ago
|
Whiteboard: [AddonsRewrite][has patch][needs 567306] → [AddonsRewrite][has patch][needs 567306][softblocker]
Updated•14 years ago
|
Whiteboard: [AddonsRewrite][has patch][needs 567306][softblocker] → [AddonsRewrite][has patch][needs 567306][soft blocker]
Comment 15•14 years ago
|
||
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 ago → 14 years ago
Resolution: --- → FIXED
Whiteboard: [AddonsRewrite][has patch][needs 567306][soft blocker] → [AddonsRewrite][soft blocker]
Target Milestone: mozilla1.9.3a5 → mozilla2.0b10
Updated•14 years ago
|
Keywords: dev-doc-needed
Updated•14 years ago
|
Whiteboard: [AddonsRewrite][soft blocker] → [AddonsRewrite][softblocker]
Comment 16•14 years ago
|
||
Ctrl-f is supposed to still work?
Assignee | ||
Comment 18•14 years ago
|
||
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 19•14 years ago
|
||
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-
Assignee | ||
Comment 21•14 years ago
|
||
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 22•14 years ago
|
||
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 23•14 years ago
|
||
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?
Assignee | ||
Comment 24•14 years ago
|
||
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 25•14 years ago
|
||
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+
Assignee | ||
Comment 26•14 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Comment 27•14 years ago
|
||
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.
Keywords: dev-doc-needed → dev-doc-complete
Comment 28•14 years ago
|
||
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?
Comment 29•14 years ago
|
||
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
Comment 30•14 years ago
|
||
(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
Comment 31•14 years ago
|
||
Verified fixed with Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b10pre) Gecko/20110121 Firefox/4.0b10pre
Status: RESOLVED → VERIFIED
Comment 32•14 years ago
|
||
(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 ago → 14 years ago
Updated•14 years ago
|
Status: RESOLVED → VERIFIED
Comment 33•14 years ago
|
||
This is silly
Open a new tab
Hit Ctrl+F
Open add-on manager from the Firefox Button
Result: Findbar is visible.
Assignee | ||
Comment 34•14 years ago
|
||
(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.
You need to log in
before you can comment on or make changes to this bug.
Description
•