Does Firefox WebExtensions support an API to change proxy preferences (like the chrome.proxy API)?
Does Mozilla have plans to add it?
Yes. Starting from 55th Firefox it will be possible. https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/proxy
Keep in mind, this API absolutely different from Chrome version.
For code split use typeof browser === 'undefined'
As of Firefox 60, Firefox and Firefox for Android support the proxy API, which is available through browser.proxy
. It is roughly similar to the chrome.proxy
API on Chrome.
There was what should now be considered a false-start of Firefox supporting a different semantic for setting the proxy using browser.proxy.register()
and browser.proxy.unregister()
. They were first introduced in Firefox 56, depricated in Firefox 68 and will be removed after either Firefox 70 or 71 (depending on which documentation is to be believed).
WebExtensions does not yet support the chrome.proxy
API. There are plans to support it in the future (as there are plans for basically all of the Chrome extension APIs).
There are two related tracking bugs:
There is a thread about "WebExtension Proxy API Design" on the Dev-addons mailing list.
For now, If you want to manipulate proxy settings from a Firefox add-on, you will need to use some other type of add-on.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With