Bug 48948 - Crash when setting context font to bad value
Summary: Crash when setting context font to bad value
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2010-11-03 13:39 PDT by Simon Fraser (smfr)
Modified: 2010-11-03 14:00 PDT (History)
2 users (show)

See Also:


Attachments
Testcase (521 bytes, text/html)
2010-11-03 13:39 PDT, Simon Fraser (smfr)
no flags Details
Patch (3.25 KB, patch)
2010-11-03 13:54 PDT, Simon Fraser (smfr)
sullivan: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2010-11-03 13:39:49 PDT
Created attachment 72864 [details]
Testcase

This crashes:


        var ctx = document.getElementById("canvas").getContext("2d");
        ctx.font = "font-family: Helvetica; font-size: 48pt; font-color: #000000";
        ctx.fillText("Hello world", 10, 200);
Comment 1 Simon Fraser (smfr) 2010-11-03 13:40:11 PDT
<rdar://problem/8174663>
Comment 2 Simon Fraser (smfr) 2010-11-03 13:54:15 PDT
Created attachment 72867 [details]
Patch
Comment 3 Simon Fraser (smfr) 2010-11-03 14:00:08 PDT
http://trac.webkit.org/changeset/71266