[Webkit-unassigned] [Bug 117095] New: HTMLCanvasElement getContext and supportsContext functions assumes that a canvas cannot be changed after creation
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 31 14:45:23 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=117095
Summary: HTMLCanvasElement getContext and supportsContext
functions assumes that a canvas cannot be changed
after creation
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
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
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.
--
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