[Webkit-unassigned] [Bug 14251] New: onchange handler for select controls doesn't fire when changing via keyboard

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 20 16:47:38 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=14251

           Summary: onchange handler for select controls doesn't fire when
                    changing via keyboard
           Product: WebKit
           Version: 522+ (nightly)
          Platform: PC
               URL: http://bugs.webkit.org/attachment.cgi?id=14705&action=vi
                    ew
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mpComplete at gmail.com


I think the fix for 13857 causes this problem.  Repro steps:
1. Load the above URL in Safari for Windows (it's the test case for 13857).
2. Focus the select control, then type "t" and hit Enter.
3. The selection changes, but no message is displayed.  The onchange handler
didn't fire.
4. If you change the selection with the mouse, or cause the popup to open, the
onchange handler will fire.

What's happening is that saveLastSelection(); is getting called before firing
the onchange event, which actually saves the *current* selection (it changes
immediately when you type "t").  Immediately after that, there's a check in
menuListOnChange to see if the current selection is the same as the one we just
saved, which of course it is.

This doesn't happen in the mac port because there is platform-specific code
guarded by ARROW_KEYS_POP_MENU that calls menuListOnChange before we get to the
above code.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list