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

Unified Diff: webrequest.js

Issue 5749582424178688: Ported over anti-adblock message notification (Closed)
Patch Set: Created Feb. 28, 2014, 6:41 p.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
« popup.html ('K') | « skin/popup.css ('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
@@ -87,6 +87,10 @@
if (header.name.toLowerCase() == "x-adblock-key" && header.value)
processKeyException(header.value, tab, frame);
}
+
+ var notificationToShow = Notification.getNextToShow(details.url);
+ if (notificationToShow)
+ showNotification(notificationToShow);
}
chrome.webRequest.onHeadersReceived.addListener(onHeadersReceived, {urls: ["<all_urls>"]}, ["responseHeaders"]);
« popup.html ('K') | « skin/popup.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld