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

Unified Diff: safari/ext/background.js

Issue 4757413714460672: Issue 1259 - Block while checking whether ABP is disabled on YouTube on Safari (Closed)
Patch Set: Created Aug. 22, 2014, 1:59 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
« no previous file with comments | « no previous file | safari/ext/content.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: safari/ext/background.js
===================================================================
--- a/safari/ext/background.js
+++ b/safari/ext/background.js
@@ -615,6 +615,17 @@
case "proxy":
event.message = backgroundPageProxy.handleMessage(event.message);
break;
+ case "request":
+ var page = pages[event.message.pageId];
+ var sender = {page: page, frame: page._frames[event.message.frameId]};
+
+ var response = null;
+ var sendResponse = function(message) { response = message; };
+
+ ext.onMessage._dispatch(event.message.payload, sender, sendResponse);
+
+ event.message = response;
+ break;
}
break;
case "request":
« no previous file with comments | « no previous file | safari/ext/content.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld