mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
minor code review (HTTP observer)
This commit is contained in:
parent
77da1aabb3
commit
eb5421d686
1 changed files with 6 additions and 10 deletions
|
@ -2191,16 +2191,12 @@ var httpObserver = {
|
||||||
|
|
||||||
// Behind-the-scene request... Yes, really.
|
// Behind-the-scene request... Yes, really.
|
||||||
if ( pendingRequest === null ) {
|
if ( pendingRequest === null ) {
|
||||||
if ( this.handleRequest(channel, URI, { tabId: vAPI.noTabId, rawtype: rawtype }) ) {
|
pendingRequest = {
|
||||||
return;
|
frameId: 0,
|
||||||
}
|
parentFrameId: -1,
|
||||||
|
tabId: vAPI.noTabId,
|
||||||
// Carry data for behind-the-scene redirects
|
rawtype: rawtype
|
||||||
if ( channel instanceof Ci.nsIWritablePropertyBag ) {
|
};
|
||||||
channel.setProperty(this.REQDATAKEY, [0, -1, vAPI.noTabId, rawtype]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/gorhill/uBlock/issues/654
|
// https://github.com/gorhill/uBlock/issues/654
|
||||||
|
|
Loading…
Reference in a new issue