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

Unified Diff: safari/ext/background.js

Issue 5153060179410944: Issue 1694 - Fixed error when opening multiple tabs on Safari (Closed)
Patch Set: Created Dec. 13, 2014, 3:49 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 | no next file » | 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
@@ -60,7 +60,8 @@
var isPageActive = function(page)
{
var tab = page._tab;
- return tab == tab.browserWindow.activeTab && page == tab._visiblePage;
+ var win = tab.browserWindow;
+ return win && tab == win.activeTab && page == tab._visiblePage;
};
var forgetPage = function(id)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld