[Webkit-unassigned] [Bug 135552] New: onchange event not firing on application switch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Aug 3 18:26:37 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=135552
Summary: onchange event not firing on application switch
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh
URL: http://jsfiddle.net/rUnL8/10/
OS/Version: Mac OS X 10.9
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Events
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: spekary at gmail.com
1. Focus on a text input field.
2. Switch to a different application.
Result: Firefox fires a blur and a change event. Webkit only fires a blur event.
This might not be so bad, since when you switch back to Webkit the field has focus again, and tabbing out will fire the change event. However, there are situations where the switch to another application needs to know the field changed.
For example, if the field has an onchange handler that causes the data to be submitted to a database, and the other application needs that data, the other application will not see the data, even though its right there on the screen and the user sees it as entered.
The example in the fiddle is a case where an onchange handler could even cause a form submit when the webkit browser is not the front application. In the example, it happens when a file upload button has a file dragged and dropped on it. In this situation, the change event never fires, even though the field changed and the form was submitted.
Recommendation: If a blur happens on a changed field, the change event should fire at that time, and not be delayed.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list