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:
Phil Rukin
2017-08-11 14:48:55 +02:00
committed by wbamberg
parent 050b5fa9d0
commit 980168290f
4 changed files with 4 additions and 4 deletions

View File

@@ -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",

View File

@@ -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 => {

View File

@@ -12,7 +12,7 @@
"applications": { "applications": {
"gecko": { "gecko": {
"strict_min_version": "55.0a1" "strict_min_version": "56.0a1"
} }
}, },

View File

@@ -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