summaryrefslogtreecommitdiff
path: root/application
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-12-23 22:47:45 +0200
committerJustOff <Off.Just.Off@gmail.com>2018-12-23 22:47:45 +0200
commitcb2f0f614362d3e986d585d6d1b4a2eaa20a1365 (patch)
treeb3383073be814a8bffe078e390d5bb53fd4b5e3e /application
parent4319edc1a68820d62b9748a53b024cfe1ff9457c (diff)
downloaduxp-cb2f0f614362d3e986d585d6d1b4a2eaa20a1365.tar.gz
[PALEMOON] Initialize the search service asynchronously from 'about:home' and 'about:newtab'
Diffstat (limited to 'application')
-rw-r--r--application/palemoon/base/content/browser.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/palemoon/base/content/browser.js b/application/palemoon/base/content/browser.js
index 591d00fbb1..8a635e91bb 100644
--- a/application/palemoon/base/content/browser.js
+++ b/application/palemoon/base/content/browser.js
@@ -2456,7 +2456,7 @@ function BrowserOnAboutPageLoad(doc) {
docElt.setAttribute("searchEnginePostData", engine.postDataString || "");
docElt.setAttribute("searchEngineURL", engine.searchURL);
}
- updateSearchEngine();
+ Services.search.init(updateSearchEngine);
// Listen for the event that's triggered when the user changes search engine.
// At this point we simply reload about:home to reflect the change.
@@ -2481,7 +2481,7 @@ function BrowserOnAboutPageLoad(doc) {
docElt.setAttribute("searchEnginePostData", engine.postDataString || "");
docElt.setAttribute("searchEngineURL", engine.searchURL);
}
- updateSearchEngine();
+ Services.search.init(updateSearchEngine);
// Listen for the event that's triggered when the user changes search engine.
// At this point we simply reload about:newtab to reflect the change.