| Index: lib/requestBlocker.js |
| =================================================================== |
| --- a/lib/requestBlocker.js |
| +++ b/lib/requestBlocker.js |
| @@ -62,20 +62,21 @@ |
| for (let type in browser.webRequest.ResourceType) |
| yield resourceTypes.get(browser.webRequest.ResourceType[type]) || "OTHER"; |
| // WEBRTC gets addressed through a workaround, even if the webRequest API is |
| // lacking support to block this kind of a request. |
| yield "WEBRTC"; |
| - // POPUP, CSP and ELEMHIDE filters aren't mapped to resource types. |
| + // ELEMHIDE, POPUP, CSP, and SNIPPET filters aren't mapped to resource types. |
| + yield "ELEMHIDE"; |
| yield "POPUP"; |
| - yield "ELEMHIDE"; |
| yield "CSP"; |
| + yield "SNIPPET"; |
| }()); |
| function onBeforeRequestAsync(page, url, type, docDomain, |
| thirdParty, sitekey, |
| specificOnly, filter) |
| { |
| if (filter) |
| FilterNotifier.emit("filter.hitCount", filter, 0, 0, page); |
| @@ -93,17 +94,16 @@ |
| ext.webRequest.onBeforeRequest.addListener((url, type, page, frame) => |
| { |
| let docDomain = null; |
| let sitekey = null; |
| let specificOnly = false; |
| let thirdParty = false; |
| let urlString = stringifyURL(url); |
| - |
| if (frame && page) |
| { |
| if (checkWhitelisted(page, frame)) |
| return true; |
| docDomain = extractHostFromFrame(frame); |
| sitekey = getKey(page, frame); |
| thirdParty = isThirdParty(url, docDomain); |