[Webkit-unassigned] [Bug 117169] New: HTMLCanvasElement check attributes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 3 14:21:50 PDT 2013


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

           Summary: HTMLCanvasElement check attributes
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P4
         Component: Canvas
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ruthiecftg at gmail.com
                CC: dino at apple.com, webkit-bug-importer at group.apple.com


getContext and supportsContext, which will be implemented once the patch for bug 70117 is landed, each accept a contextId parameter (i.e. '2d', 'webkit-3d', etc.) and any number of attribute parameters. According to the WebGL specification, 3d attributes are currently the following booleans: 'alpha', 'depth', 'stencil', 'antialias', 'premultipliedAlpha', 'preserveDrawingBuffer' (http://www.khronos.org/registry/webgl/specs/latest/#context-creation-parameters).

A static helper function should be written that accepts the attributes that would be passed into getContext and supportsContext and checks that they are valid, i.e. they are the right type and right names. 

For instance, getContext('2d', {'not_alpha' -> true, 'alpha' -> 4}) has malformed attributes as its second parameter and should return false.

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