Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 480863

Summary: [FileUpload] Cancel triggers selection event when FileUpload open multiple times (only in Chrome)
Product: [RT] RAP Reporter: Martin Ferlan <martin.ferlan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M4   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Martin Ferlan CLA 2015-10-28 09:02:33 EDT
Can be tested with Examples Demo -> Key Features -> File Upload page

Open application in Chrome browser (tested with version "46.0.2490.71 m" and
"46.0.2490.80 m")
Click on FileUpload -> Select file -> press OK button
Selected file will be shown in label next to FileUpload widget
Click on FileUpload -> Select file -> press Cancel button
Label next to the FileUpload widget will contain empty string
-> SWT.Selection event was triggered and list of file names is empty

Open with internal eclipse browser or Firefox (version 36.0.4):
Click on FileUpload -> Select file -> press OK button
Selected file will be shown in label next to FileUpload widget
Click on FileUpload -> Select file -> press Cancel button
nothing happens..


Behavior is different.
Comment 1 Ivan Furnadjiev CLA 2015-12-09 04:12:58 EST
On the client we are listening for DOM onchange event. It seems, in Chrome when cancel button is pressed the selected files are cleared and this event is fired. In Firefox - no change is detected and no event is fired. Selection event for empty file list is useless anyway and could not be fired.
Comment 2 Ivan Furnadjiev CLA 2015-12-09 04:56:01 EST
Fixed with change https://git.eclipse.org/r/#/c/62290/