mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-01 08:39:37 +02:00
This commit is contained in:
parent
6ee6551f57
commit
e177e04f90
@ -1844,7 +1844,7 @@ var httpObserver = {
|
|||||||
register: function() {
|
register: function() {
|
||||||
this.pendingRingBufferInit();
|
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);
|
Services.obs.addObserver(this, 'http-on-examine-response', true);
|
||||||
|
|
||||||
// Guard against stale instances not having been unregistered
|
// Guard against stale instances not having been unregistered
|
||||||
@ -1872,7 +1872,7 @@ var httpObserver = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
unregister: function() {
|
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');
|
Services.obs.removeObserver(this, 'http-on-examine-response');
|
||||||
|
|
||||||
this.componentRegistrar.unregisterFactory(this.classID, this);
|
this.componentRegistrar.unregisterFactory(this.classID, this);
|
||||||
@ -2142,7 +2142,7 @@ var httpObserver = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// http-on-opening-request
|
// http-on-modify-request
|
||||||
|
|
||||||
var pendingRequest = this.lookupPendingRequest(URI.spec);
|
var pendingRequest = this.lookupPendingRequest(URI.spec);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user