aboutsummaryrefslogtreecommitdiff
path: root/chrome/content/overlay.js
diff options
context:
space:
mode:
authorEinar Egilsson2007-10-02 10:49:10 +0000
committerEinar Egilsson2007-10-02 10:49:10 +0000
commit44344acd49dbd1781825644deee839d7de132e00 (patch)
treed21acd917adc8fbbb64d0c7295a7a56345a5053d /chrome/content/overlay.js
parentec5b381d57a1a873d423c9e6f2d6ca78c1aa1963 (diff)
Redirector 1.0.1
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@92 119bf307-c92d-0410-89bd-8f53e6181181
Diffstat (limited to 'chrome/content/overlay.js')
-rw-r--r--chrome/content/overlay.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/content/overlay.js b/chrome/content/overlay.js
index ca198e6..7795372 100644
--- a/chrome/content/overlay.js
+++ b/chrome/content/overlay.js
@@ -82,7 +82,7 @@ var RedirectorOverlay = {
if (redirectUrl.url && oHttp.notificationCallbacks) {
const NS_BINDING_ABORTED = 0x804b0002;
aRequest.cancel(NS_BINDING_ABORTED);
- var newStateFlags = Ci.nsIWebProgressListener.STATE_STOP | Ci.nsIWebProgressListener.STATE_IS_NETWORK;
+ var newStateFlags = Ci.nsIWebProgressListener.STATE_STOP | Ci.nsIWebProgressListener.STATE_IS_NETWORK | Ci.nsIWebProgressListener.STATE_IS_REQUEST;
origOnStateChange.call(this, aWebProgress, aRequest, newStateFlags, "");
var interfaceRequestor = oHttp.notificationCallbacks.QueryInterface(Ci.nsIInterfaceRequestor);
var targetDoc = interfaceRequestor.getInterface(Ci.nsIDOMWindow).document;
@@ -92,7 +92,10 @@ var RedirectorOverlay = {
origOnStateChange.apply(this, arguments);
}
+ } else {
+ origOnStateChange.apply(this, arguments);
}
+
};
},
@@ -111,6 +114,8 @@ var RedirectorOverlay = {
onUnload : function(event) {
+ RedirectorOverlay.prefObserver.unregister();
+ Redirector.prefObserver.unregister();
//Clean up here
RedirLib.debug("Finished cleanup");
},