Closed Bug 1479005 Opened 7 years ago Closed 7 years ago

Add new rule button on a website with CSP throws an error

Categories

(DevTools :: Inspector, defect)

63 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1476439

People

(Reporter: gregtatum, Unassigned)

Details

This happens 63, 62, and 61, and is specific to certain webpages. I wonder if it's CSP related? STR: * Go to https://monitor.firefox.com/ or https://send.firefox.com/ * Open inspector on a page and target a node. * Click the + button to add a new rule ER: * It creates a new rule in the pane. AR: * A stylesheet node is added to the bottom of the page, but no rule is added. * The following error is thrown: Error while calling actor 'pagestyle's method 'addNewRule' sheet is null protocol.js:1016:5 writeError resource://devtools/shared/protocol.js:1016:5 handler/</< resource://devtools/shared/protocol.js:1206:25 (Async: promise callback) handler/< resource://devtools/shared/protocol.js:1203:18 _queueResponse resource://devtools/shared/protocol.js:1030:22 handler resource://devtools/shared/protocol.js:1202:9 onPacket resource://devtools/server/main.js:1654:15 receiveMessage resource://devtools/shared/transport/child-transport.js:66:5 (Async: MessageListener.receiveMessage) _addListener resource://devtools/shared/transport/child-transport.js:40:5 ready resource://devtools/shared/transport/child-transport.js:57:5 _onConnection resource://devtools/server/main.js:1090:5 connectToParent resource://devtools/server/main.js:572:12 onConnect</< resource://devtools/server/startup/frame.js:50:22 onConnect< resource://devtools/server/startup/frame.js:49:7 exports.makeInfallible/< resource://devtools/shared/ThreadSafeDevToolsUtils.js:109:14 (Async: MessageListener.receiveMessage) <anonymous> resource://devtools/server/startup/frame.js:72:5 <anonymous> resource://devtools/server/startup/frame.js:19:4 10:10:23.050 addNewRule@resource://devtools/shared/base-loader.js -> resource://devtools/server/actors/styles.js:931:11 async*handler@resource://devtools/shared/base-loader.js -> resource://devtools/shared/protocol.js:1173:21 onPacket@resource://devtools/shared/base-loader.js -> resource://devtools/server/main.js:1654:15 receiveMessage@resource://devtools/shared/base-loader.js -> resource://devtools/shared/transport/child-transport.js:66:5 MessageListener.receiveMessage*_addListener@resource://devtools/shared/base-loader.js -> resource://devtools/shared/transport/child-transport.js:40:5 ready@resource://devtools/shared/base-loader.js -> resource://devtools/shared/transport/child-transport.js:57:5 _onConnection@resource://devtools/shared/base-loader.js -> resource://devtools/server/main.js:1090:5 connectToParent@resource://devtools/shared/base-loader.js -> resource://devtools/server/main.js:572:12 onConnect</<@resource://devtools/server/startup/frame.js:50:22 onConnect<@resource://devtools/server/startup/frame.js:49:7 exports.makeInfallible/<@resource://devtools/shared/base-loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:109:14 MessageListener.receiveMessage*@resource://devtools/server/startup/frame.js:72:5 @resource://devtools/server/startup/frame.js:19:4 protocol.js:1019:7 writeError resource://devtools/shared/protocol.js:1019:7 handler/</< resource://devtools/shared/protocol.js:1206:25 (Async: promise callback) handler/< resource://devtools/shared/protocol.js:1203:18 _queueResponse resource://devtools/shared/protocol.js:1030:22 handler resource://devtools/shared/protocol.js:1202:9 onPacket resource://devtools/server/main.js:1654:15 receiveMessage resource://devtools/shared/transport/child-transport.js:66:5 (Async: MessageListener.receiveMessage) _addListener resource://devtools/shared/transport/child-transport.js:40:5 ready resource://devtools/shared/transport/child-transport.js:57:5 _onConnection resource://devtools/server/main.js:1090:5 connectToParent resource://devtools/server/main.js:572:12 onConnect</< resource://devtools/server/startup/frame.js:50:22 onConnect< resource://devtools/server/startup/frame.js:49:7 exports.makeInfallible/< resource://devtools/shared/ThreadSafeDevToolsUtils.js:109:14 (Async: MessageListener.receiveMessage) <anonymous> resource://devtools/server/startup/frame.js:72:5 <anonymous> resource://devtools/server/startup/frame.js:19:4
This is linked to the CSP on these websites, see the console: `Content Security Policy: The page’s settings blocked the loading of a resource at inline (“style-src”).`
Summary: Add new rule button throws an error → Add new rule button on a website with CSP throws an error
Already logged at 1476439
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.