mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 15:17:29 +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 {
|
try {
|
||||||
response.remoteAddress = httpActivity.channel.remoteAddress;
|
response.remoteAddress = httpActivity.channel.remoteAddress;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Cu.reportError(e);
|
if (e.result != Cr.NS_ERROR_NOT_AVAILABLE) Cu.reportError(e);
|
||||||
}
|
}
|
||||||
response.remotePort = null;
|
response.remotePort = null;
|
||||||
try {
|
try {
|
||||||
response.remotePort = httpActivity.channel.remotePort;
|
response.remotePort = httpActivity.channel.remotePort;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Cu.reportError(e);
|
if (e.result != Cr.NS_ERROR_NOT_AVAILABLE) Cu.reportError(e);
|
||||||
}
|
}
|
||||||
response.status = statusLineArray.shift();
|
response.status = statusLineArray.shift();
|
||||||
response.statusText = statusLineArray.join(" ");
|
response.statusText = statusLineArray.join(" ");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue