Fix deprecation warning when using AsyncChannel in protocol handler
This commit is contained in:
parent
cbeb5881e9
commit
007bc315cc
1 changed files with 1 additions and 1 deletions
|
@ -1298,7 +1298,7 @@ AsyncChannel.prototype = {
|
|||
}
|
||||
|
||||
Components.utils.import("resource://gre/modules/NetUtil.jsm");
|
||||
NetUtil.asyncFetch(data, function (inputStream, status) {
|
||||
NetUtil.asyncFetch({ uri: data, loadUsingSystemPrincipal: true }, function (inputStream, status) {
|
||||
if (!Components.isSuccessCode(status)) {
|
||||
reject();
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue