зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1272590
- Remove SEC_NORMAL from toolkit/content/contentAreaUtils.js (r=sicking)
This commit is contained in:
Родитель
c470acb725
Коммит
ba2b486b03
|
@ -26,6 +26,8 @@ XPCOMUtils.defineLazyModuleGetter(this, "Deprecated",
|
|||
"resource://gre/modules/Deprecated.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "AppConstants",
|
||||
"resource://gre/modules/AppConstants.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "NetUtil",
|
||||
"resource://gre/modules/NetUtil.jsm");
|
||||
|
||||
var ContentAreaUtils = {
|
||||
|
||||
|
@ -1314,12 +1316,11 @@ function openURL(aURL)
|
|||
}
|
||||
}
|
||||
|
||||
var channel = Services.io.newChannelFromURI2(uri,
|
||||
null, // aLoadingNode
|
||||
Services.scriptSecurityManager.getSystemPrincipal(),
|
||||
null, // aTriggeringPrincipal
|
||||
Components.interfaces.nsILoadInfo.SEC_NORMAL,
|
||||
Components.interfaces.nsIContentPolicy.TYPE_OTHER);
|
||||
var channel = NetUtil.newChannel({
|
||||
uri: uri,
|
||||
loadUsingSystemPrincipal: true
|
||||
});
|
||||
|
||||
var uriLoader = Components.classes["@mozilla.org/uriloader;1"]
|
||||
.getService(Components.interfaces.nsIURILoader);
|
||||
uriLoader.openURI(channel,
|
||||
|
|
Загрузка…
Ссылка в новой задаче