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

Unified Diff: safari/include.youtube.js

Issue 29325973: Noissue - Apply YouTube workaround on Chrome (PLEASE REVERT ME!) (Closed)
Patch Set: Created Sept. 5, 2015, 3:04 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
« metadata.common ('K') | « metadata.safari ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: safari/include.youtube.js
===================================================================
--- a/safari/include.youtube.js
+++ b/safari/include.youtube.js
@@ -19,7 +19,7 @@
if (document.domain != "www.youtube.com")
return;
- if (!ext.backgroundPage.sendMessageSync({type: "get-domain-enabled-state"}).enabled)
+ if ("sendMessageSync" in ext.backgroundPage && !ext.backgroundPage.sendMessageSync({type: "get-domain-enabled-state"}).enabled)
kzar 2015/09/05 15:17:26 Unrelated change?
Sebastian Noack 2015/09/05 15:21:14 Nope. Synchronous messaging is only available in S
kzar 2015/09/05 15:22:57 Acknowledged.
return;
var badArgumentsRegex = /^((.*_)?(ad|ads|afv|adsense)(_.*)?|(ad3|st)_module|prerolls|interstitial|infringe|iv_cta_url)$/;
« metadata.common ('K') | « metadata.safari ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld