[Webkit-unassigned] [Bug 115744] New: xhr of JSON File object sends toJSON() representation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 7 11:30:13 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=115744

           Summary: xhr of JSON File object sends toJSON() representation
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tj at vision-media.ca


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.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list