New issue
Advanced search Search tips

Issue 817959 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 814937
Owner: ----
Closed: Mar 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Cannot add CSS Rules to a document loaded from file://

Reported by dfshep...@gmail.com, Mar 1 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36

Steps to reproduce the problem:
1. Create or get a .html file on your system.
2. Open the file in Chrome.
3. Open the developer tools.
4. Go to the "Elements" tab of the dev tools.
5. Find the CSS Pane, and open its "Styles" tab.
6. Press the "+" button in the top right of the Styles tab to add a new CSS Rule.
7. Select a stylesheet if needed.
8. Type any CSS rule and hit enter.

What is the expected behavior?
The newly created rule appears empty (and grayed out, if it does not select over the element highlighted in the Elements tab), and can be double-clicked on to start adding style declarations.

This is the usual behavior on live websites, but it doesn't seem to work on local files opened through the file:// protocol.

What went wrong?
The rule disappears immediately as Enter is pressed, regardless of any modifier keys, and regardless of the selector used. The selector cannot be found in any stylesheet thereafter, and so cannot be edited to add style declarations.

Did this work before? N/A 

Chrome version: 64.0.3282.186  Channel: stable
OS Version: 10.0
Flash Version:
 

Comment 1 by woxxom@gmail.com, Mar 1 2018

Bisect info: 520000 (good) - 520009 (bad)
https://chromium.googlesource.com/chromium/src/+log/add28195..b380fae1?pretty=fuller
Suspecting r520005 = a4ebe08c91e29140e700c7bae9b94f27a786d1ca = https://crrev.com/c/783911 by meade@chromium.org
"Update behavior of CSSStyleSheet to match spec for Security origin"
Landed in 64.0.3281.0

This is a duplicate of  issue 814937  fixed in 66.0.3356.0 and merged to 65.0.3325.105 (stable on March, 6).

Comment 2 by ajha@chromium.org, Mar 2 2018

Labels: Needs-Triage-M64
Mergedinto: 814937
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment