Extension Manifest: Ignore key "applications" without warnings
-
A Former User last edited by
So first of all, I'm not sure if this is the best place for such a request. From what I have seen this is the best place, but please redirect me if there is a better place to do this.
I'm a browser extension developer and I want to add support for Opera to my add-on. So my manifest file contains keys specific for Firefox and the minimum_opera_version key specific for Opera. Mozilla is really trying to make cross-browser extension developing as smooth as possible, so my similar request to them got accepted, see https://bugzilla.mozilla.org/show_bug.cgi?id=1404746 (the minimum_opera_version key is not throwing a warning any longer in Firefox 58+).
I would like to see that Opera is ignoring the "applications" key (i.e. not throwing a warning) in a similar fashion. (Bonus points for ignoring "browser_style" as well, but "applications" would be a great start.)
-
gmiazga Opera last edited by
@croydon should be available in today developer update https://blogs.opera.com/desktop/2018/04/opera-54-0-2920-0-developer-update/ can you confirm this is all you needed to make cross browser extensions smooth experience?
-
A Former User last edited by A Former User
@mgeffro Sorry, for this late reply.
There are still a few other barriers. Since it would be too much to ask that every browser supports the exact same APIs, we need to be able to make some switch cases depending on the browser (and version) the code is running in.
The easiest way would be to support the browser.runtime.getBrowserInfo() API: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/runtime/getBrowserInfo
-
gmiazga Opera last edited by
We currently have no plans for any big changes in extensions APIs on our road map. Would parsing navigator.appVersion be enough for you? Unless there is some chromium API which would better suit your need in which case we could perhaps get into Opera without need for separate implementation.