Bug 105575 - [JSC] SerializedScriptValue does not serialize non-index properties of arrays
Summary: [JSC] SerializedScriptValue does not serialize non-index properties of arrays
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: 2012-12-20 14:01 PST by Michael Pruett
Modified: 2013-01-07 11:05 PST (History)
3 users (show)

See Also:


Attachments
Patch (40.67 KB, patch)
2012-12-24 09:58 PST, Michael Pruett
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Pruett 2012-12-20 14:01:35 PST
When serializing arrays, the JSC SerializedScriptValue ignores non-indexed properties of arrays.

This behavior is incorrect according to the HTML5 specification's structured cloning algorithm:

"Properties of Array objects are not treated any differently than those of other Objects. In particular, this means that non-index properties of arrays are copied as well."

http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm
Comment 1 Michael Pruett 2012-12-24 09:58:25 PST
Created attachment 180677 [details]
Patch
Comment 2 WebKit Review Bot 2013-01-07 11:05:06 PST
Comment on attachment 180677 [details]
Patch

Clearing flags on attachment: 180677

Committed r138964: <http://trac.webkit.org/changeset/138964>
Comment 3 WebKit Review Bot 2013-01-07 11:05:10 PST
All reviewed patches have been landed.  Closing bug.