diff options
author | JustOff <Off.Just.Off@gmail.com> | 2018-12-26 13:48:49 +0200 |
---|---|---|
committer | JustOff <Off.Just.Off@gmail.com> | 2018-12-26 13:48:49 +0200 |
commit | accd61429eee73dd3564957cf3d6480c280d44e7 (patch) | |
tree | 14b0a9fa4a90fa038e4a2fc790decc178af72494 /application/palemoon/base | |
parent | 202e78b731776c3a102ca2f465ed3864b27effd3 (diff) | |
download | UXP-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.js | 4 |
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; } } |