mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
devtools: don't report error if remoteAddress/remotePort returns NS_ERROR_NOT_AVAILABLE
This commit is contained in:
parent
759506c751
commit
3ec8369f61
1 changed files with 2 additions and 2 deletions
|
|
@ -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(" ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue