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

Unified Diff: safari/common.js

Issue 6184947589054464: Don't wrap tab info in Tab if Tab is not defined (Closed)
Patch Set: Created Jan. 14, 2014, 11:48 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
« chrome/common.js ('K') | « chrome/common.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: safari/common.js
===================================================================
--- a/safari/common.js
+++ b/safari/common.js
@@ -76,7 +76,7 @@
var sender = {};
var dispatcher;
- if ("SafariBrowserTab" in window && event.target instanceof SafariBrowserTab)
+ if ("Tab" in window && "SafariBrowserTab" in window && event.target instanceof SafariBrowserTab)
{
dispatcher = event.target.page;
sender.tab = new Tab(event.target);
« chrome/common.js ('K') | « chrome/common.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld