зеркало из https://github.com/mozilla/gecko-dev.git
Backout bug 522842 (2858cd90d03)
This commit is contained in:
Родитель
335b9d7446
Коммит
6179f28581
|
@ -717,12 +717,9 @@ function getMozParamPref(prefName)
|
|||
*
|
||||
* @see nsIBrowserSearchService.idl
|
||||
*/
|
||||
let gEnginesLoaded = false;
|
||||
function notifyAction(aEngine, aVerb) {
|
||||
if (gEnginesLoaded) {
|
||||
LOG("NOTIFY: Engine: \"" + aEngine.name + "\"; Verb: \"" + aVerb + "\"");
|
||||
gObsSvc.notifyObservers(aEngine, SEARCH_ENGINE_TOPIC, aVerb);
|
||||
}
|
||||
LOG("NOTIFY: Engine: \"" + aEngine.name + "\"; Verb: \"" + aVerb + "\"");
|
||||
gObsSvc.notifyObservers(aEngine, SEARCH_ENGINE_TOPIC, aVerb);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2637,8 +2634,6 @@ SearchService.prototype = {
|
|||
|
||||
for each (let dir in cache.directories)
|
||||
this._loadEnginesFromCache(dir);
|
||||
|
||||
gEnginesLoaded = true;
|
||||
},
|
||||
|
||||
_readCacheFile: function SRCH_SVC__readCacheFile(aFile) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче