Closed
Bug 402895
Opened 17 years ago
Closed 17 years ago
The search bar no longer has a blue border when the website has a search engine available
Categories
(Firefox :: Search, defect, P4)
Firefox
Search
Tracking
()
VERIFIED
FIXED
Firefox 3 beta2
People
(Reporter: LpSolit, Assigned: dao)
References
()
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
155.68 KB,
image/png
|
Details | |
1.52 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b1) Gecko/2007110618 Firefox/3.0b1 Go visit http://technorati.com/ or http://fr.wikipedia.org/wiki/Accueil and look at the search bar. The border is not in blue despite a search engine is available and I don't have it installed yet. This is definitely a regression as I can see the blue border with Firefox 2.0.0.9. I'm running Mandriva Linux 2008.0 with KDE 3.5.7, and yes, I'm using a new profile (I deleted .mozilla/ to be sure) and no, I have no plugin/addon installed.
Flags: blocking-firefox3?
Comment 1•17 years ago
|
||
This works for me on b.m.o and the sites mentioned in comment 0. Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a9pre) Gecko/2007110704 Minefield/3.0a9pre I'll give the beta rc a check.
Reporter | ||
Comment 2•17 years ago
|
||
Hum, weird, I cannot reproduce the problem after I restarted Fx3. Maybe the problem was due to some action I did previously. Didn't find a testcase yet -> minor.
Severity: normal → minor
Flags: blocking-firefox3?
Reporter | ||
Comment 3•17 years ago
|
||
Ah ok, testcase found: on the navigation toolbar, right click and select "Customize", then add or remove a button (in my case, the printer), then close the "Customize toolbar" window. Next time you try to access a website with a search engine, the search bar will no longer appear in blue.
Flags: blocking-firefox3?
Comment 4•17 years ago
|
||
I see this on Mac as well, using Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9b1) Gecko/2007110618 Firefox/3.0b1, following the steps in Comment 3.
Comment 5•17 years ago
|
||
For me just opening and closing the customize window causes this. With the build in comment 1.
Reporter | ||
Comment 6•17 years ago
|
||
Marcia can reproduce on Mac -> All/All.
OS: Linux → All
Hardware: PC → All
Comment 7•17 years ago
|
||
Strange, for some reason the style rules in searchBar.css no longer apply after the toolbar customzation code "wraps" the nodes in the toolbar, even though the attribute is still set correctly. A regression range would be useful here, this doesn't appear to be related to any front-end search changes.
Updated•17 years ago
|
Flags: blocking-firefox3? → blocking-firefox3+
Keywords: qawanted
Priority: -- → P4
Target Milestone: --- → Firefox 3 M11
Assignee | ||
Updated•17 years ago
|
Assignee | ||
Comment 8•17 years ago
|
||
After customizing the toolbar, BrowserSearch.searchBar.searchButton still points to the old element. I don't know why.
Comment 9•17 years ago
|
||
That sounds broken. We should try to figure out the root cause before wallpapering over it like this, I think.
Comment 10•17 years ago
|
||
(Although we can always take that patch if we can't figure it out soon enough - but even then we should get another bug filed.)
Assignee | ||
Comment 11•17 years ago
|
||
It looks like an XBL issue to me, but then I would expect it to occur in more places, which doesn't seem to be the case. At this point I don't see what's special about the searchButton property.
Comment 12•17 years ago
|
||
Wait, I'm not sure I understand - I can reproduce by just opening and closing the customize toolbar dialog - what's the "old element" in that case? We wrap and unwrap the button, but we don't touch the button itself afaik.
Assignee | ||
Comment 13•17 years ago
|
||
Both wrapping and unwrapping the search bar reconstructs the binding, including the anonymous content (e.g. the button) as it seems. But the _searchButton reference persists.
Comment 14•17 years ago
|
||
Oh, I see. _searchButton is persisting when the binding is re-attached (with new anonymous content) because it's just a normal JS property. I suppose we could fix this by creating a field for it (initialized to null). Or even just use a field instead of a property now that fields are lazily evaluated, although then we'd lose the ability to make it read-only. Having it be a field would ensure that it gets re-initialized when the binding is re-applied, I think. (I'm also not sure why the binding is being reapplied and anonymous content being rebuilt, but I suppose that's something we can look into separately.)
Assignee | ||
Comment 15•17 years ago
|
||
I tried adding a _searchButton field and using a field for searchButton ... didn't make a difference.
Assignee | ||
Comment 16•17 years ago
|
||
Jonas, Boris, any thoughts?
Comment 17•17 years ago
|
||
Using a field should be working. See bug 398135: we undefine fields when we tear down the binding, so they will get redefined again later. > I'm also not sure why the binding is being reapplied Are you moving the node around in the DOM? If you are, that's why.
Assignee | ||
Comment 18•17 years ago
|
||
OK, this appears to be working. Don't know what went wrong last time.
Attachment #289929 -
Attachment is obsolete: true
Attachment #290428 -
Flags: review?(gavin.sharp)
Attachment #289929 -
Flags: review?(gavin.sharp)
Comment 19•17 years ago
|
||
Comment on attachment 290428 [details] [diff] [review] v2 Loses the read-only-ness, but I guess that's OK.
Attachment #290428 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Updated•17 years ago
|
Keywords: checkin-needed
Comment 20•17 years ago
|
||
Checking in browser/components/search/content/search.xml; /cvsroot/mozilla/browser/components/search/content/search.xml,v <-- search.xml new revision: 1.108; previous revision: 1.107 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: Firefox 3 M11 → Firefox 3 M10
Comment 21•17 years ago
|
||
Verified fix on Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9b2pre) Gecko/2007120704 Minefield/3.0b2pre and Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b2pre) Gecko/2007120704 Minefield/3.0b2pre.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•