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

Unified Diff: include.preload.js

Issue 29545645: Issue 5695 - Use tabs.insertCSS if extensionTypes.CSSOrigin exists (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Skip false properties Created Sept. 15, 2017, 9:23 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
« no previous file with comments | « no previous file | lib/cssInjection.js » ('j') | lib/cssInjection.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include.preload.js
===================================================================
--- a/include.preload.js
+++ b/include.preload.js
@@ -494,17 +494,17 @@
if (this.style && this.style.parentElement)
this.style.parentElement.removeChild(this.style);
this.style = null;
if (response.trace)
this.tracer = new ElementHidingTracer();
- this.inject = response.inject;
+ this.inject = !!response.inject;
if (this.inject)
this.addSelectors(response.selectors);
else if (this.tracer)
this.tracer.addSelectors(response.selectors);
this.elemHideEmulation.apply();
});
« no previous file with comments | « no previous file | lib/cssInjection.js » ('j') | lib/cssInjection.js » ('J')

Powered by Google App Engine
This is Rietveld