diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-02-13 11:50:04 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-02-13 11:50:04 +0100 |
commit | 6bb02d95f70000b150569089987701c8244d7d5d (patch) | |
tree | c7e11508f70ee665c3a3a039f7101fd62ad9e47e /application/basilisk/components/webextensions/ext-c-omnibox.js | |
parent | 71c81eb900ac3b8a770a4b844771faf335999861 (diff) | |
download | UXP-6bb02d95f70000b150569089987701c8244d7d5d.tar UXP-6bb02d95f70000b150569089987701c8244d7d5d.tar.gz UXP-6bb02d95f70000b150569089987701c8244d7d5d.tar.lz UXP-6bb02d95f70000b150569089987701c8244d7d5d.tar.xz UXP-6bb02d95f70000b150569089987701c8244d7d5d.zip |
Remove webextensions conditional code from Basilisk.
Tag issue #936
Diffstat (limited to 'application/basilisk/components/webextensions/ext-c-omnibox.js')
-rw-r--r-- | application/basilisk/components/webextensions/ext-c-omnibox.js | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/application/basilisk/components/webextensions/ext-c-omnibox.js b/application/basilisk/components/webextensions/ext-c-omnibox.js deleted file mode 100644 index 3b9b6e2f7..000000000 --- a/application/basilisk/components/webextensions/ext-c-omnibox.js +++ /dev/null @@ -1,32 +0,0 @@ -/* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */ -/* vim: set sts=2 sw=2 et tw=80: */ -"use strict"; - -Cu.import("resource://gre/modules/ExtensionUtils.jsm"); - -var { - runSafeSyncWithoutClone, - SingletonEventManager, -} = ExtensionUtils; - -extensions.registerSchemaAPI("omnibox", "addon_child", context => { - return { - omnibox: { - onInputChanged: new SingletonEventManager(context, "omnibox.onInputChanged", fire => { - let listener = (text, id) => { - runSafeSyncWithoutClone(fire, text, suggestions => { - // TODO: Switch to using callParentFunctionNoReturn once bug 1314903 is fixed. - context.childManager.callParentAsyncFunction("omnibox_internal.addSuggestions", [ - id, - suggestions, - ]); - }); - }; - context.childManager.getParentEvent("omnibox_internal.onInputChanged").addListener(listener); - return () => { - context.childManager.getParentEvent("omnibox_internal.onInputChanged").removeListener(listener); - }; - }).api(), - }, - }; -}); |