Closed Bug 1199669 Opened 10 years ago Closed 4 years ago

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

Categories

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

42 Branch
All
Linux
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: crayfishexterminator, Unassigned)

Details

(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

Closing this as Resolved > Worksforme as the crash doesn't occur anymore on Ubuntu 14.08 on the latest versions of Firefox Nightly 91.0a1 (2021-06-16), beta 90.0b8 or release 89.0.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.