Dragging elements outside of remote iframes silently fails with Fission
Categories
(DevTools :: Inspector, defect, P3)
Tracking
(Fission Milestone:Future)
| Fission Milestone | Future |
People
(Reporter: jdescottes, Unassigned)
References
Details
(Whiteboard: dt-fission-future)
STRs:
- enable fission
- open a website with remote iframes (eg http://janodvarko.cz/tests/fission/case1/index.html)
- open devtools > inspector
- in the markupview, find any node in the remote frame, and try to drag and drop it to the parent frame/page
ER: the node should move
AR: nothing happens
Note: I am filing this as UNCONFIRMED, because I assumed that we didn't allow drag and drop of nodes across frames, remote or not. I am not sure we should allow it, or simply indicate that this is not a valid drop target.
The code responsible for the drag and drop is
const { nextSibling, parent } = this.markup.dropTargetNodes;
const { walkerFront } = parent;
await walkerFront.insertBefore(this.node, parent, nextSibling);
The walkerFront in this case will correspond to the drop target. If we had to support this cross-frame move, I guess we would have to:
- first "copy" the node from the frame target
- then remove the original node in the frame target
- insert the "copy" in the parent target
Comment 1•5 years ago
|
||
Could it become a security issue if remote is allowed?
| Reporter | ||
Comment 2•5 years ago
|
||
(In reply to Nabil Tharwat from comment #1)
Could it become a security issue if remote is allowed?
I don't think so, but it's a good question. We wouldn't move the real DOM nodes in this scenario. We would make a "lookalike" copy the DOM node (same type & attributes, ... and recursively on all children) and would move that to the other frame. Users could do the same from existing devtools features, albeit with more steps.
To be frank I think the best here will be to simply disable dropping nodes on remote frames, and show it clearly to the user.
Updated•5 years ago
|
| Reporter | ||
Comment 3•5 years ago
|
||
Setting P3, S3 based on triage discussions yesterday. This is an edge case and is borderline an enhancement. The fact that nothing happens is fine, we should probably just improve the UX here and add some user feedback.
Comment 4•5 years ago
•
|
||
dt-fission-future bugs don't need to block Fission MVP, so I'm moving them to Fission Future.
Description
•