Open Bug 906419 Opened 11 years ago Updated 3 years ago

drag div

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect, P5)

26 Branch
x86_64
Windows 8
defect

Tracking

()

UNCONFIRMED

People

(Reporter: findyourmagic, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0 (Beta/Release)
Build ID: 20130814063812

Steps to reproduce:

1.create a div
2.set the attribute draggable to true
3.drag the div


Actual results:

It trigger the dragstart event first but did not trigger the drag event.


Expected results:

It should trigger the drag event after the dragstart event.
Version: 23 Branch → 26 Branch
Comment on attachment 791810 [details]
dnd-source-node-event.html

><!DOCTYPE HTML>
><html>
><head>
><title>dnd_source_node_event</title>
><style>
>	#dragElement {
>		border: solid 1px #ccc;
>		padding: 5px 10px;
>		background-color: green;
>		color: #fff; 
>		width:180px; 
>	}
></style>
><script src="/resources/testharness.js"></script>
><script src="/resources/testharnessreport.js"></script>
></head>
><body onload="load_test_attr.done()">
><div id="dragElement" draggable="true">drag element</div>
><h1 >Dnd source node event test.Drag the green box.There are three tests.</h1>
><div id="log"></div>
><script>
>
>setup({explicit_done:true});
>
>onload = function(){
>	var ele = document.getElementById("dragElement"),
>		dragFlag = true;
>	
>	on_event(ele,"dragstart",function(){
>		test(function(){
>			assert_true(true);
>		},"test for event dragstart is pass");
>	});	
>
>	on_event(ele,"drag",function(){
>		if(dragFlag){
>			test(function(){
>				assert_true(true);
>			},"test for event drag is pass");
>			dragFlag = false;
>		}		
>	});
>
>	on_event(ele,"dragend",function(){
>		test(function(){
>			assert_true(true);
>		},"test for event dragend is pass");
>		done();
>	});
>}
>
></script>
></body>
></html>
Component: Untriaged → Drag and Drop
Product: Firefox → Core
This doesn't really sound like a security issue to me.

Bulk-downgrade of unassigned, >=3 years untouched DOM/Storage bug's priority.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: