summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/browser.js
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@wolfbeast.com>2018-12-23 22:06:41 +0100
committerGitHub <noreply@github.com>2018-12-23 22:06:41 +0100
commitbfedd7d40c73ef0423251f6df74bc948a6f44a1e (patch)
treeb3383073be814a8bffe078e390d5bb53fd4b5e3e /application/palemoon/base/content/browser.js
parent4319edc1a68820d62b9748a53b024cfe1ff9457c (diff)
parentcb2f0f614362d3e986d585d6d1b4a2eaa20a1365 (diff)
downloadUXP-bfedd7d40c73ef0423251f6df74bc948a6f44a1e.tar
UXP-bfedd7d40c73ef0423251f6df74bc948a6f44a1e.tar.gz
UXP-bfedd7d40c73ef0423251f6df74bc948a6f44a1e.tar.lz
UXP-bfedd7d40c73ef0423251f6df74bc948a6f44a1e.tar.xz
UXP-bfedd7d40c73ef0423251f6df74bc948a6f44a1e.zip
Merge pull request #919 from JustOff/nsIBrowserSearchService_async_init
[PALEMOON] Initialize the search service asynchronously from 'about:home' and 'about:newtab'
Diffstat (limited to 'application/palemoon/base/content/browser.js')
-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 591d00fbb..8a635e91b 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.