mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-17 14:59:12 +02:00
Update proxy-blocker extension to be compatible with firefox 56+ (#260)
* Update `proxy-blocker` extension to be compatible with firefox 56+ * Change `DIRECT 1234` to `DIRECT` see bug https://bugzilla.mozilla.org/show_bug.cgi?id=1355198
This commit is contained in:
@@ -315,7 +315,7 @@
|
|||||||
"javascript_apis": [
|
"javascript_apis": [
|
||||||
"extension.getURL",
|
"extension.getURL",
|
||||||
"proxy.onProxyError",
|
"proxy.onProxyError",
|
||||||
"proxy.registerProxyScript",
|
"proxy.register",
|
||||||
"runtime.onMessage",
|
"runtime.onMessage",
|
||||||
"runtime.sendMessage",
|
"runtime.sendMessage",
|
||||||
"storage.local",
|
"storage.local",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ const defaultSettings = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Register the proxy script
|
// Register the proxy script
|
||||||
browser.proxy.registerProxyScript(proxyScriptURL);
|
browser.proxy.register(proxyScriptURL);
|
||||||
|
|
||||||
// Log any errors from the proxy script
|
// Log any errors from the proxy script
|
||||||
browser.proxy.onProxyError.addListener(error => {
|
browser.proxy.onProxyError.addListener(error => {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
"applications": {
|
"applications": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
"strict_min_version": "55.0a1"
|
"strict_min_version": "56.0a1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* exported FindProxyForURL */
|
/* exported FindProxyForURL */
|
||||||
|
|
||||||
var blockedHosts = [];
|
var blockedHosts = [];
|
||||||
const allow = "DIRECT 1234";
|
const allow = "DIRECT";
|
||||||
const deny = "PROXY 127.0.0.1:65535";
|
const deny = "PROXY 127.0.0.1:65535";
|
||||||
|
|
||||||
// tell the background script that we are ready
|
// tell the background script that we are ready
|
||||||
|
|||||||
Reference in New Issue
Block a user