Open Bug 1494935 Opened 6 years ago Updated 2 years ago

Can not delete a <div> node from "Delete Node" context menu enabled option, using shadow-root inlining-text

Categories

(DevTools :: Inspector, defect, P2)

defect

Tracking

(firefox63 affected, firefox64 affected)

Tracking Status
firefox63 --- affected
firefox64 --- affected

People

(Reporter: zstimi, Unassigned)

References

(Blocks 1 open bug)

Details

[Affected versions]:
- Firefox 63.0b9
- Latest Nightly 64.0a1

[Affected platforms]:
- Windows 10 x64
- Windows 8.1 x64
- macOS 10.13.6

[Steps to reproduce]:
1. Start Firefox.
2. Open in url bar: https://juliandescottes.github.io/webcomponents-playground/inlining-text/
3. Open the "Inspect Element" by right click on the browser window and select it from the context menu or press the F12 key.
4. Expand all the nodes from test page (right click on <body > element and select "Expand All") .
5. Go to <div slot="slot1">content</div>, right click on this node and select "Delete Node" from context menu

[Expected result]:
-  The selected node deleted, you will see in html view: <div>content</div>.

[Actual result]:
- Nothing happened.

[Additional notes]: The node is deleted by keyboard pressing, go to <div slot="slot1">content</div> and press the "Delete" key from keyboard .
The Ubuntu 18.04 x64 platform is affected too, sorry I forgot this from description.
Error:
Error while calling actor 'domwalker's method 'previousSibling' Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [inIDeepTreeWalker.currentNode]

Call stack:
DocumentWalker@resource://devtools/server/actors/inspector/document-walker.js:61:29
getDocumentWalker@resource://devtools/server/actors/inspector/walker.js:225:12
previousSibling@resource://devtools/server/actors/inspector/walker.js:880:20
handler@resource://devtools/shared/protocol.js:1198:21
onPacket@resource://devtools/server/main.js:1313:15
receiveMessage@resource://devtools/shared/transport/child-transport.js:66:5
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:892:5
connectToParent@resource://devtools/server/main.js:313: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
MessageListener.receiveMessage*@resource://devtools/server/startup/frame.js:72:5
@resource://devtools/server/startup/frame.js:19:4
Priority: -- → P2
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.