[Pkg-mozext-commits] [greasemonkey] 01/19: Script with @include about:blank?query will be executed twice
David Prévot
taffit at moszumanska.debian.org
Fri May 6 12:48:47 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 6c81650411d882f5cef25be6572fc9ab20787fb8
Author: janekptacijarabaci <janekptacijarabaci at seznam.cz>
Date: Sat Mar 5 22:30:04 2016 +0100
Script with @include about:blank?query will be executed twice
---
content/framescript.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/content/framescript.js b/content/framescript.js
index b870ec9..608c667 100644
--- a/content/framescript.js
+++ b/content/framescript.js
@@ -46,7 +46,8 @@ function browserLoad(aEvent) {
var contentWin = aEvent.target.defaultView;
var href = contentWin.location.href;
- if (href.match(/^about:(blank|reader)/)) {
+ if ((href == "about:blank")
+ || (href.match(/^about:reader/))) {
// #1696: document-element-inserted doesn't see about:blank
runScripts('document-start', contentWin);
runScripts('document-end', contentWin);
--
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