[Webkit-unassigned] [Bug 5251] WebCore exports many JavaScript objects w/o prototypes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Feb 9 15:34:30 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=5251
------- Comment #6 from sam at webkit.org 2008-02-09 15:34 PDT -------
(In reply to comment #5)
> (In reply to comment #2)
> > It would help to have examples of objects that still have this problem, if any.
> >
>
> It think CanvasRenderingContext2D has this problem too. I'm not an expert, but
> shouldn't it be able to add methods to the CanvasRenderingContext2D object by
> doing:
> CanvasRenderingContext2D.prototype.myFunction = function() { etc
> ?
This is actually a result of not exposing the CanvasRenderingContext2D
constructor on the Window object. This can be seen by calling typing
javascript:alert(typeof CanvasRenderingContext2D) int the address bar and
seeing that it alerts undefined. This is a bug and should be fixed. We should
do an audit of what other constructors we are missing as well.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list