[Webkit-unassigned] [Bug 118019] New: Change event should not be dispatched by clicking a scrollbar of select listbox

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 25 20:20:58 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=118019

           Summary: Change event should not be dispatched by clicking a
                    scrollbar of select listbox
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Keywords: BlinkMergeCandidate
          Severity: Normal
          Priority: P2
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rniwa at webkit.org
                CC: dino at apple.com, jonlee at apple.com, ruthiecftg at gmail.com


Consider merging https://chromium.googlesource.com/chromium/blink/+/492549b0fcaa58a85aa0797446b62985a263704f

We fixed crbug.com/244406, but the fix was incomplete.

Bug detail:
If the size of option list is changed after the last 'change' event and
'mouseup' happens on the scrollbar, new 'change' event is dispatched even though
the selection state is not changed.
HTMLSelectElement::listBoxOnChange dispatches 'change' event if
m_lastOnChangeSelection.size() is different from the option list size. (Why?)

How to fix:
When the option list size is changed, we should update m_lastOnChangeSelection
so that it represents reality or should avoid to call listBoxOnChange() in
mouseup event handler. This patch implements the latter by clearing
m_lastOnChangeSelection.

-- 
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