CookieSandbox: Fix attachToInterfaceRequestor() for XHRs (#4043)
This commit is contained in:
parent
0077c3f07a
commit
12b6645a1f
1 changed files with 5 additions and 2 deletions
|
@ -170,7 +170,10 @@ Zotero.CookieSandbox.prototype = {
|
||||||
* @param {nsIInterfaceRequestor} ir
|
* @param {nsIInterfaceRequestor} ir
|
||||||
*/
|
*/
|
||||||
"attachToInterfaceRequestor": function(ir) {
|
"attachToInterfaceRequestor": function(ir) {
|
||||||
Zotero.CookieSandbox.Observer.trackedInterfaceRequestors.set(ir.QueryInterface(Components.interfaces.nsIInterfaceRequestor), this);
|
if (typeof ir.QueryInterface === 'function') {
|
||||||
|
ir = ir.QueryInterface(Components.interfaces.nsIInterfaceRequestor);
|
||||||
|
}
|
||||||
|
Zotero.CookieSandbox.Observer.trackedInterfaceRequestors.set(ir, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -413,4 +416,4 @@ Zotero.CookieSandbox.Observer = new function() {
|
||||||
Zotero.debug("CookieSandbox: Slurped cookies from "+channelURI, 5);
|
Zotero.debug("CookieSandbox: Slurped cookies from "+channelURI, 5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue