[Pkg-mozext-commits] [requestpolicy] 101/280: some cleanup
David Prévot
taffit at moszumanska.debian.org
Sat May 2 20:30:06 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 73a0a329c6ec0217ea1ce962d957290c8964d6c0
Author: Martin Kimmerle <dev at 256k.de>
Date: Fri Jan 2 19:28:47 2015 +0100
some cleanup
---
src/content/ui/frame.js | 24 +++++-------------------
1 file changed, 5 insertions(+), 19 deletions(-)
diff --git a/src/content/ui/frame.js b/src/content/ui/frame.js
index 661850c..bdcf179 100644
--- a/src/content/ui/frame.js
+++ b/src/content/ui/frame.js
@@ -23,13 +23,11 @@
var MMID = "requestpolicy at requestpolicy.com";
Components.utils.import("resource://gre/modules/Services.jsm");
-/*
-let scope = (function() {
- let self = {};
-
-
-
+// fixme: It's unclear whether it's necessary to listen for *any* click in
+// the window. Originally the following code has been part of
+// overlay.onLoad and has been moved here in order to support e10s.
+/*
// Listen for click events so that we can allow requests that result from
// user-initiated link clicks and form submissions.
addEventListener("click", function(event) {
@@ -73,20 +71,8 @@ let scope = (function() {
});
addMessageListener(MMID + ":setLocation", function(message) {
- let location = content.document.location;
- // When refreshing a page that wants to redirect, sometimes the
- // targetDocument.location is null. If that's the case, just use
- // do the redirection in the current content pane.
- if (location == null) {
- //dump("in setLocation: content.document.location == null, " +
- // "using content.location instead");
- location = content.location;
- }
- location.href = message.data.uri;
+ content.document.location.href = message.data.uri;
});
-/*
- return self;
-}());*/
Services.scriptloader.loadSubScript(
'chrome://requestpolicy/content/ui/frame.blocked-content.js');
--
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