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

Unified Diff: safari/ext/popup.js

Issue 5037474598354944: Only reload the popover in Safari, when itself is shown for a different tab (Closed)
Patch Set: Created Dec. 27, 2013, 7:56 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/popup.js
===================================================================
--- a/safari/ext/popup.js
+++ b/safari/ext/popup.js
@@ -8,11 +8,11 @@
// clicked. While Chrome loads it everytime you click the icon. So in order to
// force the same behavior in Safari, we are going to reload the page of the
// bubble everytime it is shown.
-safari.application.addEventListener("popover", function()
+safari.self.addEventListener("popover", function()
{
document.documentElement.style.display = "none";
document.location.reload();
-}, true);
+});
// Safari doesn't hide popovers automatically, when we change the active tab
// programmatically, like when the options link is clicked. So we add an event
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld