Bug 69691 - [File API] Test how FileReader substitutes illegal UTF-8 characters
Summary: [File API] Test how FileReader substitutes illegal UTF-8 characters
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-07 20:48 PDT by Mark Pilgrim (Google)
Modified: 2011-10-15 00:01 PDT (History)
2 users (show)

See Also:


Attachments
Patch (2.60 KB, patch)
2011-10-07 20:49 PDT, Mark Pilgrim (Google)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Pilgrim (Google) 2011-10-07 20:48:39 PDT
According to http://dev.w3.org/2006/webapi/FileAPI/#dfn-encoding , if a Blob can not be parsed as the given or calculated encoding, bytes that can not be read must be substituted with U+FFFD. This test creates a Blob with illegal UTF-8 bytes and then attempts to read it as UTF-8 text, and checks that the proper character substitution occurs.

WebKit passes this test.
Comment 1 Mark Pilgrim (Google) 2011-10-07 20:49:27 PDT
Created attachment 110249 [details]
Patch
Comment 2 WebKit Review Bot 2011-10-15 00:01:17 PDT
Comment on attachment 110249 [details]
Patch

Clearing flags on attachment: 110249

Committed r97543: <http://trac.webkit.org/changeset/97543>
Comment 3 WebKit Review Bot 2011-10-15 00:01:21 PDT
All reviewed patches have been landed.  Closing bug.