WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
58501
Use HTMLImageElement in Canvas 2D / WebGL before response is ready causes crash
https://bugs.webkit.org/show_bug.cgi?id=58501
Summary
Use HTMLImageElement in Canvas 2D / WebGL before response is ready causes crash
Zhenyao Mo
Reported
Thursday, April 14, 2011 2:38:35 AM UTC
This is because cachedImage()->response().url().string().impl() is null, and hash(null) is not expected, thus crash.
Attachments
Patch
(3.63 KB, patch)
2011-04-14 18:53 PDT
,
Zhenyao Mo
kbr
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Zhenyao Mo
Comment 1
Thursday, April 14, 2011 2:39:19 AM UTC
I am working on a fix for WebGL. If someone else more familiar with canvas 2d could fix this on the canvas 2d side, it would be great!
Zhenyao Mo
Comment 2
Thursday, April 14, 2011 2:42:42 AM UTC
A test case for WebGL: svn checkout
https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl
-r 14468 sdk/tests/conformance/tex-image-and-sub-image-2d-with-image.html Current behavior: crash correct behavior: no crash
Zhenyao Mo
Comment 3
Friday, April 15, 2011 2:53:06 AM UTC
Created
attachment 89716
[details]
Patch
Zhenyao Mo
Comment 4
Friday, April 15, 2011 2:54:49 AM UTC
This patch makes sure WebGL won't process an HTMLImageElement if it's not ready yet. mdelaney is getting another patch ready for the rest.
Kenneth Russell
Comment 5
Friday, April 15, 2011 6:33:05 PM UTC
Comment on
attachment 89716
[details]
Patch Looks good.
Zhenyao Mo
Comment 6
Friday, April 15, 2011 7:02:12 PM UTC
Committed
r83992
: <
http://trac.webkit.org/changeset/83992
>
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