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

Unified Diff: safari/ext/content.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 | « safari/ext/background.js ('k') | safari/include.youtube.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: safari/ext/content.js
===================================================================
--- a/safari/ext/content.js
+++ b/safari/ext/content.js
@@ -383,6 +383,18 @@
{
messageProxy.sendMessage(message, responseCallback, documentInfo);
},
+ sendMessageSync: function(message)
+ {
+ return safari.self.tab.canLoad(
+ beforeLoadEvent,
+ {
+ category: "request",
+ pageId: documentInfo.pageId,
+ frameId: documentInfo.frameId,
+ payload: message
+ }
+ );
+ },
getWindow: function()
{
return backgroundPageProxy.getObject(0);
« no previous file with comments | « safari/ext/background.js ('k') | safari/include.youtube.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld