Bug 1087728: Make JS callers of ios.newChannel call ios.newChannel2 in dom/system (r=fabrice)

This commit is contained in:
Christoph Kerschbaumer 2015-02-05 12:53:14 -08:00
Родитель f243f49914
Коммит 84e003dae2
1 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -131,7 +131,7 @@ NetworkService.prototype = {
return;
}
NetUtil.asyncFetch(file, function(inputStream, status) {
NetUtil.asyncFetch2(file, function(inputStream, status) {
let rxBytes = 0,
txBytes = 0,
now = Date.now();
@ -154,7 +154,12 @@ NetworkService.prototype = {
// netd always return success even interface doesn't exist.
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) {