Closed
Bug 607931
Opened 14 years ago
Closed 3 years ago
"dropEffect" property of DataTransfer doesn't change when drag & drop link etc into other tabs or Window.
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1777149
People
(Reporter: jo0608, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; ja; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729; .NET4.0E)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; ja; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729; .NET4.0E)
When drag & drop link etc into content area of other browser IE etc, "dropEffect" value change "copy" or "move".
But when drag & drop link etc into content area of other tabs or Window or other version Firefox`s window (not input area), "dropEffect" is still "none".
Reproducible: Always
Comment 1•14 years ago
|
||
This report is not really clear. Please follow https://developer.mozilla.org/en/Bug_writing_guidelines when reporting bugs.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
To know the drop operation is not done (canceled or prohibited), I get the value of "event.dataTransfer.dropEffect" at dragend event in content area of window.
When the item may not be dropped, the possible "dropEffect" value is "none".
But even when drag a link(in content area) and successfully drop in to the content area of another tab or window (of firefox) and the link is opened, the value of "dropEffect" takes "none" .
So in above case, can`t determine what drop operation occurred from the value of "dropEffect".
Comment 3•14 years ago
|
||
Thanks, but still if you provided a testcase and indicated what exactly one needs to do to reproduce the problem (and what the problem is), it would be much easier to move forward with the bug.
Status: RESOLVED → UNCONFIRMED
Resolution: INCOMPLETE → ---
Updated•14 years ago
|
Version: unspecified → 3.6 Branch
Comment 4•3 years ago
|
||
I can confirm this is still an issue. I'll try to give some more details.
Steps:
- Create a
draggable
element - Drag the element from one browser tab to another (window A -> window B)
- In the window B, successfully allow a drop operation on an element (call
event.preventDefault()
indragenter
anddragover
on the drop target element) - In the
dragenter
anddragover
events in window B, set thedropEffect
(egevent.dataTransfer.dropEffect = 'move'
) - Drop the
draggable
element - A
drop
event fires in window B on the drop target with the correctdropEffect
set ("move"
) - A
dragend
event fires in window A but theevent.dataTransfer.dropEffect
property is set to "none"
ꜛ Step 7. is the bug. Chrome v103 and Safari v15.5 both set event.dataTransfer.dropEffect
to "move"
in window A
Environment: MacOS 12.4
- Url to example: https://5ll6w4.csb.app/ (see the
console
) - Url to codesandbox powering the example: https://codesandbox.io/s/dragging-between-windows-firefox-bug-5ll6w4?file=/src/index.ts
Flags: needinfo?(dao+bmo)
Comment 5•3 years ago
|
||
(In reply to Alex Reardon from comment #4)
I can confirm this is still an issue. I'll try to give some more details.
Steps:
- Create a
draggable
element- Drag the element from one browser tab to another (window A -> window B)
- In the window B, successfully allow a drop operation on an element (call
event.preventDefault()
indragenter
anddragover
on the drop target element)- In the
dragenter
anddragover
events in window B, set thedropEffect
(egevent.dataTransfer.dropEffect = 'move'
)- Drop the
draggable
element- A
drop
event fires in window B on the drop target with the correctdropEffect
set ("move"
)- A
dragend
event fires in window A but theevent.dataTransfer.dropEffect
property is set to "none"ꜛ Step 7. is the bug. Chrome v103 and Safari v15.5 both set
event.dataTransfer.dropEffect
to"move"
in window AEnvironment: MacOS 12.4
- Url to example: https://5ll6w4.csb.app/ (see the
console
)- Url to codesandbox powering the example: https://codesandbox.io/s/dragging-between-windows-firefox-bug-5ll6w4?file=/src/index.ts
Tested on firefox v101.0.1
Updated•3 years ago
|
Component: Tabbed Browser → DOM: Copy & Paste and Drag & Drop
Product: Firefox → Core
Version: 3.6 Branch → unspecified
Updated•3 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago → 3 years ago
Resolution: --- → DUPLICATE
Updated•1 year ago
|
Flags: needinfo?(dao+bmo)
You need to log in
before you can comment on or make changes to this bug.
Description
•