[Pkg-mozext-commits] [greasemonkey] 09/20: Style clean up
David Prévot
taffit at moszumanska.debian.org
Fri Mar 25 21:37:20 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit 73dc33f67c876296b9ab64447874e0774c3ab488
Author: janekptacijarabaci <janekptacijarabaci at seznam.cz>
Date: Tue Mar 1 13:58:56 2016 +0100
Style clean up
---
content/framescript.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/content/framescript.js b/content/framescript.js
index 9d1ab8a..b870ec9 100644
--- a/content/framescript.js
+++ b/content/framescript.js
@@ -149,15 +149,15 @@ function runScripts(aRunWhen, aContentWin) {
function urlForWin(aContentWin) {
+ if (GM_util.windowIsClosed(aContentWin)) {
+ return false;
+ }
// See #1970
// When content does (e.g.) history.replacestate() in an inline script,
// the location.href changes between document-start and document-end time.
// But the content can call replacestate() much later, too. The only way to
// be consistent is to ignore it. Luckily, the document.documentURI does
// _not_ change, so always use it when deciding whether to run scripts.
- if (GM_util.windowIsClosed(aContentWin)) {
- return false;
- }
var url = aContentWin.document.documentURI;
// But ( #1631 ) ignore user/pass in the URL.
return url.replace(gStripUserPassRegexp, '$1');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git
More information about the Pkg-mozext-commits
mailing list