Dragstart on a child process produces zombie drag session in the parent process and breaks subsequent drag-and-drops on macOS
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect, P3)
Tracking
()
People
(Reporter: yuki, Assigned: yuki)
References
Details
Attachments
(5 files, 2 obsolete files)
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Assignee | ||
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
Assignee | ||
Comment 8•6 years ago
|
||
Assignee | ||
Comment 9•6 years ago
|
||
Assignee | ||
Comment 10•6 years ago
|
||
Assignee | ||
Comment 11•6 years ago
|
||
Assignee | ||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Assignee | ||
Comment 14•6 years ago
|
||
Assignee | ||
Comment 15•6 years ago
|
||
Assignee | ||
Comment 16•6 years ago
|
||
Assignee | ||
Comment 17•6 years ago
|
||
Assignee | ||
Comment 18•6 years ago
|
||
Assignee | ||
Comment 19•6 years ago
|
||
Comment 20•6 years ago
|
||
Assignee | ||
Comment 21•6 years ago
|
||
Assignee | ||
Comment 22•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 23•6 years ago
|
||
Comment 24•6 years ago
|
||
Comment 25•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 26•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Comment 27•6 years ago
|
||
Assignee | ||
Comment 28•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 29•6 years ago
|
||
Assignee | ||
Comment 30•6 years ago
|
||
Assignee | ||
Comment 31•6 years ago
|
||
Any progress of reviewing?
Updated•6 years ago
|
Assignee | ||
Comment 32•6 years ago
|
||
I heard that deprecation of nsPresShell is in progress. Does the change affect to this patch?
Comment 33•6 years ago
|
||
(In reply to YUKI "Piro" Hiroshi from comment #32)
I heard that deprecation of nsPresShell is in progress. Does the change affect to this patch?
No, I'm gonna remove only nsIPresShell
, developers should treat mozilla::PresShell
directly instead.
Assignee | ||
Comment 34•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 35•5 years ago
|
||
The patch looks unmergable for the latest mozilla-central, thus I've recreated it and attached with the Phabricator.
Comment 36•5 years ago
|
||
(In reply to YUKI "Piro" Hiroshi from comment #31)
Any progress of reviewing?
Sorry for the terribly, incredibly long wait here. I've finally given this a proper look and understand both the problem and the fix now. Unfortunately the drag and drop code and in particular its interaction with remote frames is not well documented at all, so this took me a while.
The idea in your patch is fine: Making gLastDragView
usable outside of mouseDragged
. You introduced a few mistakes in the move to Phabricator (such that the patch won't actually work anymore), but I can fix those. There's one other change I'm going to make: Instead of resetting gLastDragView
only in mouseDown
and in InvokeDragSessionImpl
, I'm also going to set it to nil in mouseUp
, otherwise we'd break the patch for bug 1329997: We can't allow starting a drag session if the mouse button has already been released.
Updated•5 years ago
|
Comment 37•5 years ago
|
||
I've updated the patch. I've also requested review from spohl again because I made some changes.
Assignee | ||
Updated•5 years ago
|
Comment 38•5 years ago
|
||
Pushed by spohl@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/49bb3a94f090
Allow invoking drag sessions outside of mouseDragged. r=mstange,spohl
Assignee | ||
Comment 40•5 years ago
|
||
The video attached at the bug 1421333 looks same to this bug. Descriptions in the sample HTML attached to the bug 1580688 also looks to say same phenomenon. Thus I think both these two bugs should be fixed by this patch.
Comment 43•5 years ago
|
||
bugherder |
Comment 45•5 years ago
|
||
Please see bug 1581285. I suspect that some of the bugs marked a duplicate of this one are not duplicates, or the fix here did not cover all the bases. There is still a problem with drag/drop in 71.0a1. Thanks!
Assignee | ||
Comment 47•5 years ago
|
||
I think this change is small enough, and safe to apply to beta. Moreover, there are multiple duplicated bugs. It indicates that more people are affected, and uplifting this to beta may help dogfooding for them on macOS.
Updated•5 years ago
|
Updated•5 years ago
|
Description
•