mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1087742: Make JS callers of ios.newChannel call ios.newChannel2 in testing/ (r=jmaher)
This commit is contained in:
parent
d65c89962c
commit
8baf870b37
@ -184,7 +184,14 @@ SpecialPowersObserverAPI.prototype = {
|
||||
// to evaluate http:// urls...
|
||||
var scriptableStream = Cc["@mozilla.org/scriptableinputstream;1"]
|
||||
.getService(Ci.nsIScriptableInputStream);
|
||||
var channel = Services.io.newChannel(aUrl, null, null);
|
||||
var channel = Services.io.newChannel2(aUrl,
|
||||
null,
|
||||
null,
|
||||
null, // aLoadingNode
|
||||
Services.scriptSecurityManager.getSystemPrincipal(),
|
||||
null, // aTriggeringPrincipal
|
||||
Ci.nsILoadInfo.SEC_NORMAL,
|
||||
Ci.nsIContentPolicy.TYPE_OTHER);
|
||||
var input = channel.open();
|
||||
scriptableStream.init(input);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user