Open Bug 989764 Opened 7 years ago

Possibility to freeze drag-and-drop function on Firefox and an external program

Categories

(Core :: DOM: Drag & Drop, defect)

28 Branch
x86
Windows 7
defect
Not set
normal

Tracking

()

UNCONFIRMED

People

(Reporter: william.maller, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:28.0) Gecko/20100101 Firefox/28.0 (Beta/Release)
Build ID: 20140314220517

Steps to reproduce:

After adding the following javascript lines in my page, I noticed that the drag and drop function would freeze if the alert popup (used as a callback) wasn't closed.


document.addEventListener('dragover', function(e) {
	e.preventDefault();
	e.stopPropagation();
});
document.addEventListener('drop', function(e) {
	e.preventDefault();
	e.stopPropagation();
	alert('Callback...');
});


Actual results:

The drag and drop is disabled in firefox: links cannot be drag to the tab bar, toolbars cannot be personnalized by drag and drop.

Plus the program from where the file/text was drag-and-dropped into firefox, is totally freezed (for instance, Windows desktop will not work anymore)

The bug stops as soon as the alert used as a callback is closed.
You need to log in before you can comment on or make changes to this bug.