Open
Bug 906419
Opened 12 years ago
Updated 5 years ago
drag div
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect, P5)
Tracking
()
UNCONFIRMED
People
(Reporter: findyourmagic, Unassigned)
Details
Attachments
(1 file)
|
1.22 KB,
text/plain
|
Details |
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.
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>
Updated•12 years ago
|
Component: Untriaged → Drag and Drop
Product: Firefox → Core
Comment 2•12 years ago
|
||
This doesn't really sound like a security issue to me.
Updated•12 years ago
|
Group: core-security
Comment 3•5 years ago
|
||
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.
Description
•