Closed
Bug 415424
Opened 17 years ago
Closed 5 years ago
Multiple "Add new engine" options in search bar dropdown list if page is reloaded in the background and advertised engine name changes
Categories
(Firefox :: Search, defect, P4)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: tabmix.onemen, Unassigned, Mentored)
References
Details
(Whiteboard: [good next bug][fxsearch])
Attachments
(1 file)
|
8.03 KB,
image/png
|
Details |
Multiple Add "new engine" in Search button drop down list
Reproducible: Always
Steps to Reproduce:
1.load page with search engine, or this page (oo... you are already here )
2.open more tab(s)
3.select one of the other tab
4 reload this tab using tab context menu.
5.repeat step 4.
6.select this tab again.
7.look in Search button drop down list
Actual Results:
Multiple Add "new engine" in Search button drop down list for the same engine
Expected Results:
one Add "new engine" in Search button drop down list for each engine
Reason for this result:
we only do >> gBrowser.mCurrentBrowser.engines = null in nsBrowserStatusHandler.prototype.startDocumentLoad
maybe we need to add to tabbrowser.xml mTabProgressListener.onStateChange
- if (aWebProgress.DOMWindow == this.mBrowser.contentWindow)
+ if (aWebProgress.DOMWindow == this.mBrowser.contentWindow) {
this.mBrowser.userTypedClear += 2;
+ if (aRequest)
+ this.mBrowser.engines = null;
+ }
Comment 1•17 years ago
|
||
Good catch! It might just be easier to have BrowserSearch.addEngine only add an engine if it isn't already in the list.
Comment 2•17 years ago
|
||
Bug 417143 "fixed" this by not adding multiple entries with the same name. I suppose it could still happen if a page advertises a different engine name each time it loads.
Severity: normal → minor
Summary: Multiple Add "new engine" in Search button dropdown list → Multiple "Add new engine" options in search bar dropdown list if page is reloaded in the background and advertised engine name changes
Updated•12 years ago
|
Whiteboard: [mentor=gavin]
Comment 4•12 years ago
|
||
I want to slove this bug. Please tell me the procedure.
Comment 5•11 years ago
|
||
Abhinav - are you still interested in pursuing this bug?
Updated•11 years ago
|
Whiteboard: [mentor=gavin] → [mentor=gavin][good next bug]
| Assignee | ||
Updated•11 years ago
|
Mentor: gavin.sharp
Whiteboard: [mentor=gavin][good next bug] → [good next bug]
Updated•10 years ago
|
Priority: -- → P4
Whiteboard: [good next bug] → [good next bug][fxsearch]
Updated•10 years ago
|
Rank: 45
Comment 6•5 years ago
|
||
This WFM in the latest Firefox nightly, I suspect we fixed it along the way somewhere.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•