Bug 1017903 - Remove synchronous search service initialization. r=liuche

This commit is contained in:
Margaret Leibovic 2014-09-05 15:39:55 -07:00
parent b24ede1d47
commit 9a7620fe77

View File

@ -3936,6 +3936,7 @@ Tab.prototype = {
// Check that type matches opensearch.
let isOpenSearch = (type == "application/opensearchdescription+xml");
if (isOpenSearch && target.title && /^(?:https?|ftp):/i.test(target.href)) {
Services.search.init(() => {
let visibleEngines = Services.search.getVisibleEngines();
// NOTE: Engines are currently identified by name, but this can be changed
// when Engines are identified by URL (see bug 335102).
@ -3980,6 +3981,7 @@ Tab.prototype = {
};
Messaging.sendRequest(newEngineMessage);
});
}
}
break;