From 3ec8369f61c32f14834c8b84b8d429ffa8debb84 Mon Sep 17 00:00:00 2001 From: roytam1 Date: Thu, 30 Nov 2023 11:12:31 +0800 Subject: [PATCH] devtools: don't report error if remoteAddress/remotePort returns NS_ERROR_NOT_AVAILABLE --- devtools/shared/webconsole/network-monitor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devtools/shared/webconsole/network-monitor.js b/devtools/shared/webconsole/network-monitor.js index 18647e059c..25e188cf75 100644 --- a/devtools/shared/webconsole/network-monitor.js +++ b/devtools/shared/webconsole/network-monitor.js @@ -1338,13 +1338,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(" ");