Bug 115744

Summary: xhr of JSON File object sends toJSON() representation
Product: WebKit Reporter: TJ Holowaychuk <tj>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: ap
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description TJ Holowaychuk 2013-05-07 11:28:37 PDT
We came across a bug (or gotcha?) that if you send a File object representing JSON, with the Content-Type application/json it
will invoke .toJSON(), yielding a body such as the following:

{"webkitRelativePath":"","lastModifiedDate":"2013-04-25T21:45:17.000Z","name":"package.json","type":"application/json","size":265,"kind":"file"}

This seems pretty incorrect as any other type of file would pass through appropriately.
Comment 1 TJ Holowaychuk 2013-05-07 11:38:28 PDT
Oh no this may be our request lib, I'll re-open if I can confirm the issue stand-alone.