From e177e04f9028e114d4264c3848f9ebc25f40aeaa Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 3 Jun 2016 09:32:05 -0400 Subject: [PATCH] fix https://github.com/gorhill/uMatrix/issues/554 --- platform/firefox/vapi-background.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 1a798e9f6..a3865609a 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -1844,7 +1844,7 @@ var httpObserver = { register: function() { this.pendingRingBufferInit(); - Services.obs.addObserver(this, 'http-on-opening-request', true); + Services.obs.addObserver(this, 'http-on-modify-request', true); Services.obs.addObserver(this, 'http-on-examine-response', true); // Guard against stale instances not having been unregistered @@ -1872,7 +1872,7 @@ var httpObserver = { }, unregister: function() { - Services.obs.removeObserver(this, 'http-on-opening-request'); + Services.obs.removeObserver(this, 'http-on-modify-request'); Services.obs.removeObserver(this, 'http-on-examine-response'); this.componentRegistrar.unregisterFactory(this.classID, this); @@ -2142,7 +2142,7 @@ var httpObserver = { return; } - // http-on-opening-request + // http-on-modify-request var pendingRequest = this.lookupPendingRequest(URI.spec);