You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there!,
Would it be possible to create webextensions using this lib?
The chrome.* and browser.* APIs are the same(at least that's what I think) and there are polyfills available in JS echo-system to create cross-browser webextensions.
I don't know a whole lot about extension development and dart in general, still learning.
But my understanding is this that if chrome is assigned to context['chrome'] ?? context['browser'] then extensions should also work in firefox.
For instance in MDN docs for browser.tabs.getCurrent in acknowledgements section it is said that browser.tabs is based on chrome.tabs API. So the above change should allow all the chrome.* based APIs in firefox to work when using this lib.
I don't know if this is even in the scope of this lib, looking for some guidance on how to develop cross-browser extensions.
The text was updated successfully, but these errors were encountered:
Hi there!,
Would it be possible to create webextensions using this lib?
The
chrome.*
andbrowser.*
APIs are the same(at least that's what I think) and there are polyfills available in JS echo-system to create cross-browser webextensions.After looking through the source I found that in lib/src/common.dart
I don't know a whole lot about extension development and dart in general, still learning.
But my understanding is this that if
chrome
is assigned tocontext['chrome'] ?? context['browser']
then extensions should also work in firefox.For instance in MDN docs for
browser.tabs.getCurrent
in acknowledgements section it is said thatbrowser.tabs
is based onchrome.tabs
API. So the above change should allow all thechrome.*
based APIs in firefox to work when using this lib.I don't know if this is even in the scope of this lib, looking for some guidance on how to develop cross-browser extensions.
The text was updated successfully, but these errors were encountered: