зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1087728: Make JS callers of ios.newChannel call ios.newChannel2 in dom/system (r=fabrice)
This commit is contained in:
Родитель
f243f49914
Коммит
84e003dae2
|
@ -131,7 +131,7 @@ NetworkService.prototype = {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
NetUtil.asyncFetch(file, function(inputStream, status) {
|
NetUtil.asyncFetch2(file, function(inputStream, status) {
|
||||||
let rxBytes = 0,
|
let rxBytes = 0,
|
||||||
txBytes = 0,
|
txBytes = 0,
|
||||||
now = Date.now();
|
now = Date.now();
|
||||||
|
@ -154,7 +154,12 @@ NetworkService.prototype = {
|
||||||
|
|
||||||
// netd always return success even interface doesn't exist.
|
// netd always return success even interface doesn't exist.
|
||||||
callback.networkStatsAvailable(true, rxBytes, txBytes, now);
|
callback.networkStatsAvailable(true, rxBytes, txBytes, now);
|
||||||
});
|
},
|
||||||
|
null, // aLoadingNode
|
||||||
|
Services.scriptSecurityManager.getSystemPrincipal(),
|
||||||
|
null, // aTriggeringPrincipal
|
||||||
|
Ci.nsILoadInfo.SEC_NORMAL,
|
||||||
|
Ci.nsIContentPolicy.TYPE_OTHER);
|
||||||
},
|
},
|
||||||
|
|
||||||
setNetworkInterfaceAlarm: function(networkName, threshold, callback) {
|
setNetworkInterfaceAlarm: function(networkName, threshold, callback) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче