Open Bug 1199669 Opened 5 years ago Updated 5 years ago

setDragImage causes a Firefox window to disappear completely on Linux if the first argument is <panel> (but works perfectly on Windows)


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

42 Branch
Not set





(Reporter: crayfishexterminator, Unassigned)


(Keywords: crash)

User Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Build ID: 20150812163655

Steps to reproduce:

anyElement.addEventListener("dragstart", function(event) { // <button> for example
    event.dataTransfer.setData("text/plain", "You'll never see this on Linux");
    event.dataTransfer.setDragImage(document.querySelector("#toolbar-context-menu"), 0, 0); // could be #any-panel-id
}, false);

Begin to drag this "anyElement" (<button> for example).

Actual results:

Dragging this "anyElement" (<button> for example) causes the Firefox window that contains this <button> to disappear (looks like a Firefox crash if you have only one Firefox window opened) on Linux. I tested it on Ubuntu 14.04 LTS (64-bit) and Mint 17.2 (32-bit).

Expected results:

But it works perfectly on Windows XP/7/8. It shows that XUL <panel> element as a drag feedback image.
Severity: normal → critical
Keywords: crash
OS: Unspecified → Linux
Hardware: Unspecified → All
I used Firefox 42.0a2 and Firefox 38.0
Component: Untriaged → Drag and Drop
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.