зеркало из https://github.com/mozilla/gecko-dev.git
Bug 330887: Ts fix attempt #3, re-add timeout for search bar init, r+a=mconnor
This commit is contained in:
Родитель
e74933beab
Коммит
e6e265e6b7
|
@ -81,16 +81,22 @@
|
|||
<implementation implements="nsIObserver">
|
||||
|
||||
<constructor><![CDATA[
|
||||
// Refresh the display (updating icon, etc)
|
||||
this.updateDisplay();
|
||||
this.populatePopup();
|
||||
|
||||
var os =
|
||||
Components.classes["@mozilla.org/observer-service;1"]
|
||||
.getService(Components.interfaces.nsIObserverService);
|
||||
os.addObserver(this, "browser-search-engine-modified", false);
|
||||
setTimeout(function (a) { a.init(); }, 0, this);
|
||||
]]></constructor>
|
||||
|
||||
<method name="init">
|
||||
<body><![CDATA[
|
||||
// Refresh the display (updating icon, etc)
|
||||
this.updateDisplay();
|
||||
this.populatePopup();
|
||||
|
||||
var os =
|
||||
Components.classes["@mozilla.org/observer-service;1"]
|
||||
.getService(Components.interfaces.nsIObserverService);
|
||||
os.addObserver(this, "browser-search-engine-modified", false);
|
||||
]]></body>
|
||||
</method>
|
||||
|
||||
<destructor><![CDATA[
|
||||
var os = Components.classes["@mozilla.org/observer-service;1"]
|
||||
.getService(Components.interfaces.nsIObserverService);
|
||||
|
|
Загрузка…
Ссылка в новой задаче