Closed Bug 1598944 Opened 1 year ago Closed 1 year ago

Can't copy the innerHTML of a shadow root

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(firefox72 fixed)

RESOLVED FIXED
Firefox 72
Tracking Status
firefox72 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(5 files)

If I inspect a shadow host and right-click on the #shadow-root, I cannot click on Copy > Inner HTML.

As they have an innerHTML property, and it is useful.

I didn't find relevant tests for this. browser_inspector-traversal.js tests only
the server bits.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Priority: -- → P3

Right now it's enable but it throws with "remove() is not a function".

Depends on D55096

No reason not to.

Depends on D55097

This covers all the previous changes, afaict.

Depends on D55098

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/35d7fa762937
Allow to copy innerHTML of document fragments (including ShadowRoot). r=jdescottes
https://hg.mozilla.org/integration/autoland/rev/f3986d8c8b24
Rename isSelectionElement to isElement in markup-context-menu.js. r=jdescottes
https://hg.mozilla.org/integration/autoland/rev/6e91c5ac72a8
Don't enable the "Delete" context menu for fragments. r=jdescottes
https://hg.mozilla.org/integration/autoland/rev/6030206a6a58
Allow to paste innerHTML in fragments. r=jdescottes
https://hg.mozilla.org/integration/autoland/rev/759b894614db
Test context menu in shadow root nodes. r=jdescottes
Blocks: 1600084
You need to log in before you can comment on or make changes to this bug.