Do not use "browser" in snippets library
Background
The snippets library relies on the global browser
object which is provided on Chromium through a global polyfill by adblockpluschrome
. But in the webext-sdk
we no longer shim the global browser
object.
Instead the global chrome
object could be used which is available natively both on Chromium and Firefox, in order to make the snippet library more portable, removing the dependency on the global browser
object.
What to change
Use chrome
instead of browser
in lib/content/snippets.js
.