Bug 115744 - xhr of JSON File object sends toJSON() representation
Summary: xhr of JSON File object sends toJSON() representation
Status: RESOLVED INVALID
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: 2013-05-07 11:28 PDT by TJ Holowaychuk
Modified: 2013-05-07 23:24 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.