New issue
Advanced search Search tips

Issue 708115 link

Starred by 4 users

Issue metadata

Status: Untriaged
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Bug

Blocking:
issue 377978



Sign in to add a comment

chrome.declarativeContent.RequestContentScript with "css" does not inject styles

Project Member Reported by rob@robwu.nl, Apr 4 2017

Issue description

Chrome version: 59.0.3063.0 (and all the way back to 39.0.2171.71, where this feature was supposedly introduced in bug 377978)


Steps to reproduce:
1. Download the attached files, save them to a folder.
2. Visit chrome://extensions, enable Developer Mode and load the folder via the "Load unpacked extension" button.
3. Visit example.com
4. Open the developer console and look at the JS console.

Expected result:
After step 3, the page should be red.
After step 4, the console should contain the URL of the page, e.g. "complete http://example.com"

Actual result:
After step 3, the page style does not change. This shows that the styles in the "css" list of the chrome.declarativeContent.RequestContentScript action is not functional.
After step 4, the console shows the expected text, which means that the "js" list of the RequestContentScript action does work as expected.
 
manifest.json
257 bytes View Download
background.js
357 bytes View Download
contentscript.js
47 bytes View Download
contentstyle.css
66 bytes View Download

Comment 1 by rob@robwu.nl, Mar 24 2018

Blocking: 377978
Labels: OS-Chrome OS-Mac OS-Windows

Sign in to add a comment