mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 11:58:55 +00:00
Fix ``Search engine name and search term string missing from search box
in autocomplete dropdown for first window in new profile'' b=144494; r=law; sr=hewitt
This commit is contained in:
parent
c13b166a59
commit
cd80d181d1
@ -307,7 +307,15 @@
|
||||
|
||||
<handlers>
|
||||
<handler event="popupshowing"><![CDATA[
|
||||
if (!this.mEnginesReady && this.defaultSearchEngine)
|
||||
// sync up with prefs about showing search in the URL bar if
|
||||
// the URL bar hasn't finished initializing the default engine info
|
||||
// -or-
|
||||
// the search sidebar tab was displayed already triggering a change
|
||||
// notification to the browser.search pref branch listener here which
|
||||
// calls updateEngines but doesn't cause the ``Search for ...''
|
||||
// display string to be updated
|
||||
if ( (!this.mEnginesReady && this.defaultSearchEngine) ||
|
||||
!("mShowSearch" in this) )
|
||||
this.updatePref("browser.urlbar.showSearch");
|
||||
|
||||
if (this.mShowSearch) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user