Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Issue 97883002: Remove structured cloning restriction over accessor properties. (Closed)

Created:
7 years ago by sof
Modified:
7 years ago
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, haraken, Nate Chapin, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Remove structured cloning restriction over accessor properties. The structured cloning algorithm, http://www.whatwg.org/specs/web-apps/current-work/#safe-passing-of-structured-data treats accessor and non-accessor properties the same on an object being cloned. For a short two month period, the spec'ed algorithm imposed a stringent restriction on the cloning of accessor properties -- no accessor property value could appear within/inside the value of another accessor property. If any did, their values were mapped to 'null'; see https://www.w3.org/Bugs/Public/show_bug.cgi?id=12101 The structured cloning implementation provided this; a change that was subsequently reverted and generalized to allow accessor properties to be cloned without any side conditions on how they are nested. Follow up on that spec change here and do the same. Other depth controls on nested object structures are still effective. R=mkwst BUG=278883 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162969

Patch Set 1 #

Total comments: 2

Patch Set 2 : Adjust comment + expand commit message #

Patch Set 3 : Add test for cyclic-via-accessor-property object #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -56 lines) Patch
M LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js View 1 2 6 chunks +12 lines, -11 lines 0 comments Download
M LayoutTests/fast/dom/Window/window-postmessage-clone-expected.txt View 1 2 2 chunks +8 lines, -7 lines 0 comments Download
M Source/bindings/v8/SerializedScriptValue.cpp View 12 chunks +3 lines, -38 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
sof
At your leisure, please have a look.
7 years ago (2013-12-01 19:44:11 UTC) #1
Mike West
LGTM. This seems like a pretty reasonable change to the spec, and appears to match ...
7 years ago (2013-12-01 20:26:49 UTC) #2
sof
https://codereview.chromium.org/97883002/diff/1/LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js File LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js (right): https://codereview.chromium.org/97883002/diff/1/LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js#newcode170 LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js:170: // accessor properties overall. On 2013/12/01 20:26:49, Mike West ...
7 years ago (2013-12-01 21:35:11 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/97883002/20001
7 years ago (2013-12-01 21:54:58 UTC) #4
Dmitry Lomov (no reviews)
On 2013/12/01 21:54:58, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years ago (2013-12-01 22:06:00 UTC) #5
Dmitry Lomov (no reviews)
On 2013/12/01 22:06:00, Dmitry Lomov (chromium) wrote: > On 2013/12/01 21:54:58, I haz the power ...
7 years ago (2013-12-01 22:10:15 UTC) #6
sof
On 2013/12/01 22:06:00, Dmitry Lomov (chromium) wrote: > On 2013/12/01 21:54:58, I haz the power ...
7 years ago (2013-12-01 22:23:34 UTC) #7
Dmitry Lomov (no reviews)
Could you hold off CQ until tomorrow? I like your change in general, and Mike ...
7 years ago (2013-12-01 22:27:50 UTC) #8
sof
On 2013/12/01 22:27:50, Dmitry Lomov (chromium) wrote: > Could you hold off CQ until tomorrow? ...
7 years ago (2013-12-01 22:33:56 UTC) #9
Dmitry Lomov (no reviews)
lgtm This is a great simplification - thanks a lot for holding off and letting ...
7 years ago (2013-12-02 07:51:12 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/97883002/40001
7 years ago (2013-12-02 07:51:28 UTC) #11
sof
On 2013/12/02 07:51:12, Dmitry Lomov (chromium) wrote: > lgtm > This is a great simplification ...
7 years ago (2013-12-02 08:19:11 UTC) #12
commit-bot: I haz the power
7 years ago (2013-12-02 08:45:13 UTC) #13
Message was sent while issue was closed.
Change committed as 162969

Powered by Google App Engine
This is Rietveld 408576698