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

Unified Diff: lib/appSupport.js

Issue 6325312296058880: issue #290 - [seamonkey] blockable items list persists on tab changes (Closed)
Patch Set: Created July 8, 2014, 9:09 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
« 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: lib/appSupport.js
===================================================================
--- a/lib/appSupport.js
+++ b/lib/appSupport.js
@@ -145,6 +145,11 @@
*/
exports.addBrowserLocationListener = function addBrowserLocationListener(/**Window*/ window, /**Function*/ callback, /**Boolean*/ ignoreSameDoc)
{
+ _addBrowserLocationListener(window, callback, ignoreSameDoc);
+};
+
+function _addBrowserLocationListener(/**Window*/ window, /**Function*/ callback, /**Boolean*/ ignoreSameDoc)
+{
let browser = (exports.getBrowser ? exports.getBrowser(window) : null);
if (browser)
{
@@ -170,7 +175,7 @@
else
progressListeners.set(window, [progressListener]);
}
-};
+}
/**
* Removes a location listener registered for a window.
@@ -359,6 +364,12 @@
return (browser ? browser.currentURI : null);
}
};
+
+ exports.addBrowserLocationListener = function addBrowserLocationListener(/**Window*/ window, /**Function*/ callback, /**Boolean*/ ignoreSameDoc)
+ {
+ // for Seamonkey we have to ignore same document flag because of bug #1035171
Wladimir Palant 2014/07/08 11:29:02 Please use a link, otherwise it won't be obvious w
saroyanm 2014/07/08 11:58:42 Done.
+ _addBrowserLocationListener(window, callback, false);
+ };
Wladimir Palant 2014/07/08 11:29:02 Forcing the ignoreSameDoc parameter to be always f
saroyanm 2014/07/08 11:58:42 I like this :)
exports.contentContextMenu = ["contentAreaContextMenu", "mailContext"];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld