Bug 1268595: Use Cu.reportError() instead of logStringMessage within asyncFetch(). r=gijs
authorChristoph Kerschbaumer <ckerschb@christophkerschbaumer.com>
Mon, 02 May 2016 12:02:48 +0200
changeset 295898 f930f51a9b0aaf4aeb2fbf042ad040774b60d07c
parent 295897 f7d385fac19af534b7c1e8b199e1c5eb4f3034c4
child 295899 d8fa41fcfda516d1c4edca6718727df71cf8498b
push id30229
push usercbook@mozilla.com
push dateWed, 04 May 2016 09:48:55 +0000
treeherdermozilla-central@932e2fda5e33 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgijs
bugs1268595
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1268595: Use Cu.reportError() instead of logStringMessage within asyncFetch(). r=gijs
netwerk/base/NetUtil.jsm
--- a/netwerk/base/NetUtil.jsm
+++ b/netwerk/base/NetUtil.jsm
@@ -150,18 +150,17 @@ this.NetUtil = {
                 channel.loadInfo.securityMode != 0) {
                 channel.asyncOpen2(listener);
             }
             else {
                 // Log deprecation warning to console to make sure all channels
                 // 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);
             }
         }
         catch (e) {
             let exception = new Components.Exception(
                 "Failed to open input source '" + channel.originalURI.spec + "'",