Bug 1268595: Use Cu.reportError() instead of logStringMessage within asyncFetch(). r=gijs

This commit is contained in:
Christoph Kerschbaumer 2016-05-02 12:02:48 +02:00
Родитель 8a9f366080
Коммит f9776e196c
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -155,8 +155,7 @@ this.NetUtil = {
// are created providing the correct security flags in the loadinfo.
// See nsILoadInfo for all available security flags and also the API
// of NetUtil.newChannel() for details above.
Services.console.logStringMessage(
"Warning: NetUtil.asyncFetch() requires the channel to have " +
Cu.reportError("NetUtil.jsm: asyncFetch() requires the channel to have " +
"one of the security flags set in the loadinfo (see nsILoadInfo). " +
"Please create channel using NetUtil.newChannel()");
channel.asyncOpen(listener, null);