author | Jan Odvarko <odvarko@gmail.com> |
Tue, 22 May 2018 10:34:50 +0200 | |
changeset 419474 | 764a847c0f3440d35f899fa4e40325df9527eb7d |
parent 419473 | 87ceff81c3edae7f8679a10f87dd99c277bb3a19 |
child 419475 | 032d683ed7e7f201666fda75645f5d4c03325311 |
push id | 64333 |
push user | jodvarko@mozilla.com |
push date | Wed, 23 May 2018 10:50:27 +0000 |
treeherder | autoland@764a847c0f34 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | jryans |
bugs | 1462882 |
milestone | 62.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
|
devtools/client/netmonitor/src/utils/filter-text-utils.js | file | annotate | diff | comparison | revisions |
--- a/devtools/client/netmonitor/src/utils/filter-text-utils.js +++ b/devtools/client/netmonitor/src/utils/filter-text-utils.js @@ -123,18 +123,18 @@ function isFlagFilterMatch(item, { type, let protocol = item.httpVersion; match = typeof protocol === "string" ? protocol.toLowerCase().includes(value) : false; break; case "domain": match = item.urlDetails.host.toLowerCase().includes(value); break; case "remote-ip": - match = getFormattedIPAndPort(item.remoteAddress, item.remotePort) - .toLowerCase().includes(value); + let data = getFormattedIPAndPort(item.remoteAddress, item.remotePort); + match = data ? data.toLowerCase().includes(value) : false; break; case "has-response-header": if (typeof item.responseHeaders === "object") { let { headers } = item.responseHeaders; match = headers.findIndex(h => h.name.toLowerCase() === value) > -1; } else { match = false; }