WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
117169
HTMLCanvasElement should have helper method to check attributes
https://bugs.webkit.org/show_bug.cgi?id=117169
Summary
HTMLCanvasElement should have helper method to check attributes
Ruth Fong
Reported
2013-06-03 14:20:23 PDT
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2013-06-03 14:20:31 PDT
<
rdar://problem/14051244
>
Kimmo Kinnunen
Comment 2
2023-10-27 00:31:35 PDT
Refers to very old code, marking as resolved, configuration changed.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug