proxy-blocker updates (#422)

* proxy-blocker updates

These changes replace the use of the deprecated `proxy.register` (PAC file) with `proxy.onRequest` to handle the proxying of requests.

* Changes as per feedback

* Fixed typo

* Addressed feedback relating to issue with variable initialization after enable/disable

* Typo fix

* The changes as suggested by @wbamberg
This commit is contained in:
rebloor
2019-09-05 06:28:46 +12:00
committed by wbamberg
parent 12f59209c9
commit 72dfcf1bad
6 changed files with 78 additions and 88 deletions
+3 -5
View File
@@ -410,13 +410,11 @@
"name": "private-browsing-theme"
},
{
"description": "Uses the proxy API to block requests to specific hosts.",
"description": "Uses the proxy API to block requests to hosts specified on a list.",
"javascript_apis": [
"extension.getURL",
"proxy.onProxyError",
"proxy.register",
"runtime.onMessage",
"runtime.sendMessage",
"proxy.onRequest",
"proxy.onError",
"storage.local",
"storage.onChanged"
],