[e10s] It's possible to accidentally drag-n-drop link/image onto the same tab and replace current page
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect)
Tracking
()
People
(Reporter: arni2033, Unassigned)
Details
Comment 1•5 years ago
|
||
For what it's worth, Chromium has now changed to stop blowing away the current tab upon a drop: https://textslashplain.com/2020/06/03/avoiding-unexpected-navigation/
Updated•2 years ago
|
I just encountered this problem as well, in a more severe way! I was working on a website which had a file upload form. But the implementation is poor. If I open the upload form and "drag and drop" a few files, it adds those on a list. Now the list looks like I could drag-drop more files onto it (kind of like how Google Drive works). But no, I actually have to click an "Upload More" button to show the drop target FIRST, before I drag-drop more files.
Not knowing this absurd requirement, I drag-dropped another bunch of files onto the list. Misleadingly, Firefox was showing "-> Move" action under the mouse cursor, confusing me to think that the list is also a drop target (which it's not). What happens next, is the entire page is replaced by the first file, then a bunch of additional tabs were opened for the second file onward.
Please fix this! I like the behavior of Chrome and Edge described in https://textslashplain.com/2020/06/03/avoiding-unexpected-navigation/ but I'm also OK to simply show Not Allowed cursor and just cancel the drop action if there's no drop target in the website. Or at least warn before replacing the current page from a drop action.
Is there a timeline to fixing this in Firefox? Is there any about:config
setting or other way to change the behavior?
Comment 3•2 years ago
|
||
Sorry, I don't think there's any specific plan to work on this issue. Drag and drop is in general rather finicky and not a high priority.
Description
•