[Webkit-unassigned] [Bug 123044] New: EventInit dictionaries don't respect default values

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 18 16:10:30 PDT 2013


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

           Summary: EventInit dictionaries don't respect default values
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ap at webkit.org
                CC: sam at webkit.org


When constructing any event from a dictionary, we just bail out and return undefined if any member is not present.

But all these dictionaries have default values for all fields.

E.g.

bool fillUIEventInit(UIEventInit& eventInit, JSDictionary& dictionary)
{
    if (!fillEventInit(eventInit, dictionary))
        return false;

    if (!dictionary.tryGetProperty("view", eventInit.view))
        return false;
    if (!dictionary.tryGetProperty("detail", eventInit.detail))
        return false;
    return true;
}

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