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

Side by Side Diff: safari/ext/popup.js

Issue 5220277533278208: Made the bubble use the ext object from the background page instead of including ext/background.js (Closed)
Patch Set: Created Dec. 21, 2013, 7:12 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« safari/ext/background.js ('K') | « safari/ext/background.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 with (safari.extension.globalPage.contentWindow)
2 {
3 this.ext = ext;
4 this.TabMap = TabMap;
5 }
6
7 // Safari will load the popover once, and then show it everytime the icon is
8 // clicked. While Chrome loads it everytime you click the icon. So in order to
9 // force the same behavior in Safari, we are going to reload the page of the
10 // bubble everytime it is shown.
11 safari.application.addEventListener("popover", function()
12 {
13 document.documentElement.style.display = "none";
14 document.location.reload();
15 }, true);
OLDNEW
« safari/ext/background.js ('K') | « safari/ext/background.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld