Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: webrequest.js

Issue 5192819564085248: Issue 2063 - Make ext.webRequest use ABP instead Chrome request types (Closed)
Patch Set: Created Feb. 28, 2015, 9:55 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « safari/ext/content.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrequest.js
===================================================================
--- a/webrequest.js
+++ b/webrequest.js
@@ -56,15 +56,14 @@
var key = getKey(page, frame);
var filter = defaultMatcher.matchesAny(
stringifyURL(url),
- type == "sub_frame" ? "SUBDOCUMENT" : type.toUpperCase(),
- docDomain,
+ type, docDomain,
isThirdParty(url, docDomain),
key
);
// We can't listen to onHeadersReceived in Safari so we need to
// check for notifications here
- if (platform != "chromium" && type == "sub_frame")
+ if (platform != "chromium" && type == "SUBDOCUMENT")
{
var notificationToShow = NotificationStorage.getNextToShow(stringifyURL(url));
if (notificationToShow)
« no previous file with comments | « safari/ext/content.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld