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

Unified Diff: lib/cssInjection.js

Issue 29737561: Issue 6539, 6782 - Implement support for snippets (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Update lib/cssInjection.js to use CodeInjectionFilter.code Created April 27, 2018, 11:38 a.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
« no previous file with comments | « no previous file | lib/scriptInjection.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/cssInjection.js
===================================================================
--- a/lib/cssInjection.js
+++ b/lib/cssInjection.js
@@ -176,17 +176,17 @@
RegExpFilter.typeMap.GENERICHIDE);
selectors = ElemHide.getSelectorsForDomain(
hostname,
specificOnly ? ElemHide.SPECIFIC_ONLY : ElemHide.ALL_MATCHING
);
for (let filter of ElemHideEmulation.getRulesForDomain(hostname))
- emulatedPatterns.push({selector: filter.selector, text: filter.text});
+ emulatedPatterns.push({selector: filter.code, text: filter.text});
}
if (!inline && !updateFrameStyles(sender.page.id, sender.frame.id,
selectors, "standard"))
{
inline = true;
}
« no previous file with comments | « no previous file | lib/scriptInjection.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld