WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
117095
HTMLCanvasElement getContext and supportsContext functions assumes that a canvas cannot be changed after creation
https://bugs.webkit.org/show_bug.cgi?id=117095
Summary
HTMLCanvasElement getContext and supportsContext functions assumes that a can...
Ruth Fong
Reported
2013-05-31 14:43:55 PDT
The implementations of getContext and supportsContext (once the patch for
bug 70117
is landed) in Source/WebCore/html/HTMLCanvasElement.cpp depends on the assumption that the context does not go away upon creation (to prevent JS form seeing a dangling pointer) and disallows the context from being changed once it is created. Thus, if a 3d context exists for a <canvas> element (by calling canvas.getsContext('webkit-3d') and supportsContext('2d') is subsequently called on that <canvas> element, then canvas.supportsContext('2d') will return false because a 3d context already exists.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2013-05-31 14:44:14 PDT
<
rdar://problem/14037988
>
Ian 'Hixie' Hickson
Comment 2
2013-06-14 10:00:50 PDT
Why is that a bug? Isn't that exactly what the spec requires?
Ruth Fong
Comment 3
2013-06-14 10:34:53 PDT
(In reply to
comment #2
)
> Why is that a bug? Isn't that exactly what the spec requires?
Just checked with Dean; you're right.
Dean Jackson
Comment 4
2013-06-14 10:37:14 PDT
I believe it was me who gave this erroneous suggestion.
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