summaryrefslogtreecommitdiffstats
path: root/application/palemoon
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@wolfbeast.com>2018-12-31 22:57:13 +0100
committerGitHub <noreply@github.com>2018-12-31 22:57:13 +0100
commitbcf3df362775abef0d932cc44e27f788c99f673e (patch)
tree74be71a4a9b4d09d3533c42300a34999c70a3df3 /application/palemoon
parent626d40774e411c0c286eac6fada26a85b6bfff5e (diff)
parentaccd61429eee73dd3564957cf3d6480c280d44e7 (diff)
downloadUXP-bcf3df362775abef0d932cc44e27f788c99f673e.tar
UXP-bcf3df362775abef0d932cc44e27f788c99f673e.tar.gz
UXP-bcf3df362775abef0d932cc44e27f788c99f673e.tar.lz
UXP-bcf3df362775abef0d932cc44e27f788c99f673e.tar.xz
UXP-bcf3df362775abef0d932cc44e27f788c99f673e.zip
Merge pull request #920 from JustOff/PR_nsIBrowserSearchService_async_init_2
[PALEMOON] Initialize the search service asynchronously when calling 'BrowserSearch.addEngine()'
Diffstat (limited to 'application/palemoon')
-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;
}
}