[Webkit-unassigned] [Bug 63481] New: Bring V8's SerializedScriptValue implementation up to date
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jun 27 14:08:29 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=63481
Summary: Bring V8's SerializedScriptValue implementation up to
date
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: lukezarko+bugzilla at gmail.com
CC: dimich at chromium.org, levin at chromium.org,
vitalyr at chromium.org
Created an attachment (id=98781)
--> (https://bugs.webkit.org/attachment.cgi?id=98781&action=review)
Patch and tests.
The HTML5 Structured Clone algorithm (http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#safe-passing-of-structured-data) has been updated since the V8 version of SerializedScriptValue was first implemented. This patch aims to bring this implementation up to date. It:
- Introduces the new HTML5 DOM error codes for TIMEOUT_ERR, INVALID_NODE_TYPE_ERR, DATA_CLONE_ERR
- Handles cyclic structures and equality of reference preservation for cloned values
- Allows DataViews to be constructed on the native side using the existing wrapper techniques
- Amends tests and introduces new ones to check for correctness (the bulk of the patch)
The patch permits the cloning of JavaScript typed arrays. This functionality is in active use already and was supported (somewhat inefficiently) by the existing code through an artifact of implementation.
I have included two implementations of the 'memory' object from the standard. The first (which is enabled by default) is more efficient; the second is less efficient but should be more resistant to changes in V8's implementation of handles.
--
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