mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 46eadccf444d (bug 1223435)
This commit is contained in:
parent
cd991d9474
commit
a2dfb0c947
@ -2410,11 +2410,12 @@ this.XPIProvider = {
|
||||
|
||||
let chan;
|
||||
try {
|
||||
chan = NetUtil.newChannel({
|
||||
uri: aURI,
|
||||
loadUsingSystemPrincipal: true,
|
||||
securityFlags: Ci.nsILoadInfo.SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL
|
||||
});
|
||||
chan = Services.io.newChannelFromURI2(aURI,
|
||||
null, // aLoadingNode
|
||||
Services.scriptSecurityManager.getSystemPrincipal(),
|
||||
null, // aTriggeringPrincipal
|
||||
Ci.nsILoadInfo.SEC_NORMAL,
|
||||
Ci.nsIContentPolicy.TYPE_OTHER);
|
||||
}
|
||||
catch (ex) {
|
||||
return null;
|
||||
@ -5413,16 +5414,14 @@ AddonInstall.prototype = {
|
||||
|
||||
this.channel = NetUtil.newChannel({
|
||||
uri: this.sourceURI,
|
||||
loadUsingSystemPrincipal: true,
|
||||
securityFlags: Ci.nsILoadInfo.SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL
|
||||
});
|
||||
loadUsingSystemPrincipal: true});
|
||||
this.channel.notificationCallbacks = this;
|
||||
if (this.channel instanceof Ci.nsIHttpChannel) {
|
||||
this.channel.setRequestHeader("Moz-XPI-Update", "1", true);
|
||||
if (this.channel instanceof Ci.nsIHttpChannelInternal)
|
||||
this.channel.forceAllowThirdPartyCookie = true;
|
||||
}
|
||||
this.channel.asyncOpen2(listener);
|
||||
this.channel.asyncOpen(listener, null);
|
||||
|
||||
Services.obs.addObserver(this, "network:offline-about-to-go-offline", false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user