mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 764346 - Let Error Console filter match more properties like source, line. r=jaws
This commit is contained in:
parent
70a578b8d5
commit
4a31f5f99a
@ -310,7 +310,12 @@
|
||||
<method name="filterElement">
|
||||
<parameter name="aRow" />
|
||||
<body><![CDATA[
|
||||
if (this.stringMatchesFilters(aRow.getAttribute("msg"), this.mFilter)) {
|
||||
let anyMatch = ["msg", "href", "line", "code"].some(function (key) {
|
||||
return (aRow.hasAttribute(key) &&
|
||||
this.stringMatchesFilters(aRow.getAttribute(key), this.mFilter));
|
||||
}, this);
|
||||
|
||||
if (anyMatch) {
|
||||
aRow.classList.remove("filtered-by-string")
|
||||
} else {
|
||||
aRow.classList.add("filtered-by-string")
|
||||
|
Loading…
Reference in New Issue
Block a user