[Pkg-mozext-commits] [requestpolicy] 216/280: fix: show redirect notif. on JS document location changes
David Prévot
taffit at moszumanska.debian.org
Sat May 2 20:30:30 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit 6c57b387c78aa6f6b1284d3d3e756a731ff50290
Author: Martin Kimmerle <dev at 256k.de>
Date: Tue Feb 10 16:12:18 2015 +0100
fix: show redirect notif. on JS document location changes
When visiting `redirect-js-document-location-auto.html`, a
redirection notification is now shown.
---
src/content/lib/request.jsm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/content/lib/request.jsm b/src/content/lib/request.jsm
index dbeea9c..8acbfbf 100644
--- a/src/content/lib/request.jsm
+++ b/src/content/lib/request.jsm
@@ -217,7 +217,7 @@ NormalRequest.prototype.getContentWindow = function() {
return null;
}
- if (context instanceof Ci.nsIDOMXULElement && context.tagName === "browser") {
+ if (context instanceof Ci.nsIDOMXULElement && context.localName === "browser") {
return context.contentWindow;
}
@@ -257,7 +257,7 @@ NormalRequest.prototype.getChromeWindow = function() {
*/
NormalRequest.prototype.getBrowser = function() {
let context = this.aContext;
- if (context instanceof Ci.nsIDOMXULElement && context.tagName === "browser") {
+ if (context instanceof Ci.nsIDOMXULElement && context.localName === "browser") {
return context;
} else {
return WindowUtils.getBrowserForWindow(this.getContentWindow());
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list