Opened 5 years ago

Closed 4 years ago

#18157 closed defect (patchwelcome)

FileUploader onCancel fires too soon in Chrome due to erroneous mouseout

Reported by: deanlandolt Owned by:
Priority: undecided Milestone: 1.13
Component: DojoX Uploader Version: 1.10.0
Keywords: Cc:
Blocked By: Blocking:

Description

Chrome fires a "mouseout" event when the mouse leaves the page, and when mousing over the upload dialog itself. The results to onCancel being fired early. If the upload is actually cancelled this leads to an onChange event, with a dummy file object (empty string name, "0kb" size).

This behavior can be observed in the file uploader demo with in non-flash mode:

http://demos.dojotoolkit.org/demos/uploader/demo.html?forceNoFlash

Change History (4)

comment:1 Changed 5 years ago by deanlandolt

A chromium issue was created for this: https://code.google.com/p/chromium/issues/detail?id=392256

There's no obvious workaround so hopefully this will get fixed in chrome.

comment:2 Changed 5 years ago by deanlandolt

The chromium team pointed out this behavior exists in mac/firefox as well. The expected behavior exists safari, and in chrome and firefox on windows, so I went ahead and opened an issue in bugzilla too: https://bugzilla.mozilla.org/show_bug.cgi?id=1036408

comment:3 Changed 4 years ago by dylan

Milestone: tbd1.12

fwiw, still unfixed in Chrome or Firefox.

comment:4 Changed 4 years ago by dylan

Resolution: patchwelcome
Status: newclosed

Given the lack of attention that dojox/form/Uploader has received, I'm closing this ticket as patchwelcome. If you would like to work on a fix, please create a pull request and reopen the ticket.

Note: See TracTickets for help on using tickets.