MozillaZine

Reading the browser proxy settings in WebExtensions

Talk about add-ons and extension development.
smellyfinger
 
Posts: 28
Joined: January 11th, 2014, 9:54 am

Post Posted February 20th, 2017, 5:46 pm

I used to be able to do it in my AddonSDK addon. Something like that:
Code: Select all
var prefs = require("sdk/preferences/service");
var currentProxy = prefs.get("network.proxy.http");

Now I can't find a way to do that in WebExtensions. Is there a lower-level, maybe Firefox-specific Api that can do this for me?

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 3 guests