WebExtension Omnibox Highlight
A module to handle the differences between Chrome and Firefox implementations of the omnibox WebExtension API because using omnibox.SuggestResult doesn't handle matching for you correctly.
Usage
There are 3 methods available.
match
url
dim
Here's an example of usage:
chromeomniboxonInputChanged; { const headers = Accept: 'application/json' ; const options = method: 'GET' headers ; const q = ; const url = `http://mozilla.org/?q=`; const request = url options; ;} { return { response; };}
TODO
NOTE: that you should use a library like xml-escape to handle the required escaping before passing into these functions.