Closed Bug 1519340 Opened 7 years ago Closed 7 years ago

Editing CSS in developer tools is blocked by CSP

Categories

(DevTools :: Inspector: Rules, defect)

60 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1391994

People

(Reporter: tobias.bengfort, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Steps to reproduce:

I tried to edit CSS rules in the "inspect" tab of the developer tools on a page with a strict content security policy (<meta http-equiv="Content-Security-Policy" content="default-src 'self'">).

Actual results:

  • modifying existing rulesets works fine
  • adding elemet styles fails with a CSP warning
  • adding a new ruleset fails silently

Expected results:

Changes from the developer tools should not be restricted by the CSP (this is what chrome does).

Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Component: Untriaged → CSS Rules Inspector
Product: Firefox → DevTools
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.