mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1087744: Make JS callers of ios.newChannel call ios.newChannel2 in toolkit/content/ (r=bsmedberg)
This commit is contained in:
parent
14bf115903
commit
05474eb7ca
@ -1102,6 +1102,8 @@ function getCharsetforSave(aDocument)
|
||||
* Open a URL from chrome, determining if we can handle it internally or need to
|
||||
* launch an external application to handle it.
|
||||
* @param aURL The URL to be opened
|
||||
*
|
||||
* WARNING: Please note that openURL() does not perform any content security checks!!!
|
||||
*/
|
||||
function openURL(aURL)
|
||||
{
|
||||
@ -1158,7 +1160,12 @@ function openURL(aURL)
|
||||
}
|
||||
}
|
||||
|
||||
var channel = Services.io.newChannelFromURI(uri);
|
||||
var channel = Services.io.newChannelFromURI2(uri,
|
||||
null, // aLoadingNode
|
||||
Services.scriptSecurityManager.getSystemPrincipal(),
|
||||
null, // aTriggeringPrincipal
|
||||
Ci.nsILoadInfo.SEC_NORMAL,
|
||||
Ci.nsIContentPolicy.TYPE_OTHER);
|
||||
var uriLoader = Components.classes["@mozilla.org/uriloader;1"]
|
||||
.getService(Components.interfaces.nsIURILoader);
|
||||
uriLoader.openURI(channel,
|
||||
|
Loading…
Reference in New Issue
Block a user