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

Unified Diff: lib/cssInjection.js

Issue 29535555: Issue 5616 - Pass runAt=document_start to tabs.insertCSS (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created Sept. 4, 2017, 8:21 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 | no next file » | 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
@@ -34,17 +34,18 @@
try
{
chrome.tabs.insertCSS(tabId,
{
code,
cssOrigin: "user",
frameId,
- matchAboutBlank: true
+ matchAboutBlank: true,
+ runAt: "document_start"
}
);
return true;
}
catch (error)
{
if (/\bError processing cssOrigin\b/.test(error.message) == -1)
throw error;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld