Closed Bug 566716 Opened 15 years ago Closed 15 years ago

Search field of addon manager not work if opened in tab as about:addons

Categories

(SeaMonkey :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 567333

People

(Reporter: iav, Assigned: neil)

References

Details

Attachments

(2 files)

Search (filter) field of addon manager work if it opens as separate window via menu, but not work if it open in tab by address about:addon entering into address bar. This actual for Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a5pre) Gecko/20100518 Minefield/3.7a5pre ( .NET CLR 3.5.30729) too. reproduce: open browser. enter "about:addons" into location bar when addons manager loaded, click mouse into search field up right corner type some text you want to lookup as addon name see at status bar as browser work like in case of "search inside webpage by typing", no text appears in search bar
Assignee: nobody → bugspam.Callek
It's for Build identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a5pre) Gecko/20100518 SeaMonkey/2.1a2pre
This bug is in our side, I just reproduced and re-tested on Firefox side. I'm not sure what is up yet, but it "seems" like there may be a conflict with our find system.
Attached patch Proposed patchSplinter Review
This bug also affects about:config; it's caused by a combination of factors. <xul:textbox> has a type attribute which the XBL anonymous <html:input> inherits; this allows you to write <textbox type="password">. However there were also some custom XUL types; originally one was called "timed" but that is now deprecated by "search". Although the HTML input inherited type="search" this was ignored and the type defaulted to "text". However <html:input type="search"> was recently added by bug 456229, so now the type really is "search". It turns out that <input type="file"> never has focus so it's much easier just to look for the editor property (which is null for buttons).
Assignee: bugspam.Callek → neil
Status: NEW → ASSIGNED
Attachment #446227 - Flags: review?(iann_bugzilla)
Comment on attachment 446227 [details] [diff] [review] Proposed patch not a reviewer here, but based on some of the html5 tests and changes that have landed and I've seen this looks good.
Attachment #446227 - Flags: review+
Attachment #446227 - Flags: review?(iann_bugzilla) → review+
Pushed changeset b66512ef69bb to comm-central.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Blocks: SMAddonMgr
For information, you could have fix that with |mozIsTextField(false)|: - // Don't start a find if the focus is on a text, password or file field. - if (element instanceof Components.interfaces.nsIDOMHTMLInputElement && - element.type in {text: true, password: true, file: true}) + // Don't start a find if the focus is on a text field or file field. + if (element instanceof Components.interfaces.nsIDOMHTMLInputElement && + (element.type == 'file' || element.mozIsTextField(false)))
(In reply to comment #6) > For information, you could have fix that with |mozIsTextField(false)|: We actually need to use this in several places. I'll file a new bug.
As per bug 567333, which has a better fix for this bug, this patch was superseded and backed out in changeset 7cba8dffcd68.
Resolution: FIXED → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: