summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-12-26 13:48:49 +0200
committerJustOff <Off.Just.Off@gmail.com>2018-12-26 13:48:49 +0200
commitaccd61429eee73dd3564957cf3d6480c280d44e7 (patch)
tree14b0a9fa4a90fa038e4a2fc790decc178af72494 /application/palemoon/base
parent202e78b731776c3a102ca2f465ed3864b27effd3 (diff)
downloadUXP-accd61429eee73dd3564957cf3d6480c280d44e7.tar
UXP-accd61429eee73dd3564957cf3d6480c280d44e7.tar.gz
UXP-accd61429eee73dd3564957cf3d6480c280d44e7.tar.lz
UXP-accd61429eee73dd3564957cf3d6480c280d44e7.tar.xz
UXP-accd61429eee73dd3564957cf3d6480c280d44e7.zip
[PALEMOON] Initialize the search service asynchronously when calling 'BrowserSearch.addEngine()'
Diffstat (limited to 'application/palemoon/base')
-rw-r--r--application/palemoon/base/content/browser.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/application/palemoon/base/content/browser.js b/application/palemoon/base/content/browser.js
index 8a635e91b..eb4916e37 100644
--- a/application/palemoon/base/content/browser.js
+++ b/application/palemoon/base/content/browser.js
@@ -3046,7 +3046,9 @@ const DOMLinkHandler = {
/^(?:https?|ftp):/i.test(link.href) &&
!PrivateBrowsingUtils.isWindowPrivate(window)) {
var engine = { title: link.title, href: link.href };
- BrowserSearch.addEngine(engine, link.ownerDocument);
+ Services.search.init(function () {
+ BrowserSearch.addEngine(engine, link.ownerDocument);
+ });
searchAdded = true;
}
}