Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/ui/sidebar.js

Issue 29321478: Issue 2738 - Make RegExpFilter.matches() take a bit mask instead of content type string (Closed)
Patch Set: Created July 9, 2015, 1:45 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/content/ui/sidebar.js
diff --git a/chrome/content/ui/sidebar.js b/chrome/content/ui/sidebar.js
index 580a2679c341d0ade26804d7c4a6249ab41ba665..6fde33008062785f82c88966ccf96a8caa86abbd 100644
--- a/chrome/content/ui/sidebar.js
+++ b/chrome/content/ui/sidebar.js
@@ -1094,7 +1094,7 @@ var treeView = {
// Show disabled filters if no other filter applies
if (!item.filter)
- item.filter = disabledMatcher.matchesAny(item.location, item.typeDescr, item.docDomain, item.thirdParty);
+ item.filter = disabledMatcher.matchesAny(item.location, RegExpFilter.toTypeMask(item.typeDescr), item.docDomain, item.thirdParty);
if (!this.matchesFilter(item))
return;
@@ -1149,7 +1149,7 @@ var treeView = {
if (item.filter instanceof RegExpFilter && item.filter.disabled)
delete item.filter;
if (!item.filter)
- item.filter = disabledMatcher.matchesAny(item.location, item.typeDescr, item.docDomain, item.thirdParty);
+ item.filter = disabledMatcher.matchesAny(item.location, RegExpFilter.toTypeMask(item.typeDescr), item.docDomain, item.thirdParty);
}
this.refilter();
},
« no previous file with comments | « chrome/content/ui/sendReport.js ('k') | lib/contentPolicy.js » ('j') | lib/contentPolicy.js » ('J')

Powered by Google App Engine
This is Rietveld