chrome.proxy API for Firefox WebExtensions
Asked Answered
P

2

5

Does Firefox WebExtensions support an API to change proxy preferences (like the chrome.proxy API)?

Does Mozilla have plans to add it?

Papule answered 21/10, 2016 at 18:35 Comment(0)
W
5

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'

Weltpolitik answered 9/7, 2017 at 11:48 Comment(0)
T
4

Firefox 60+

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.

Firefox 56-71

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).

Earlier versions of Firefox

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.

Tarton answered 21/10, 2016 at 19:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.