diff --git a/devtools/shared/webconsole/network-monitor.js b/devtools/shared/webconsole/network-monitor.js index 556f7deeb..8bc94d30b 100644 --- a/devtools/shared/webconsole/network-monitor.js +++ b/devtools/shared/webconsole/network-monitor.js @@ -320,7 +320,7 @@ NetworkResponseListener.prototype = { let impl = this._wrappedNotificationCallbacks.getInterface(iid); impl[method].apply(impl, args); } catch (e) { - if (e.result != Cr.NS_ERROR_NO_INTERFACE) { + if (e.name != "TypeError" && e.result != Cr.NS_ERROR_NO_INTERFACE) { throw e; } } @@ -1354,13 +1354,13 @@ NetworkMonitor.prototype = { try { response.remoteAddress = httpActivity.channel.remoteAddress; } catch (e) { - Cu.reportError(e); + if (e.result != Cr.NS_ERROR_NOT_AVAILABLE) Cu.reportError(e); } response.remotePort = null; try { response.remotePort = httpActivity.channel.remotePort; } catch (e) { - Cu.reportError(e); + if (e.result != Cr.NS_ERROR_NOT_AVAILABLE) Cu.reportError(e); } response.status = statusLineArray.shift(); response.statusText = statusLineArray.join(" ");