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

Issue 2277403002: Support structured clone atop v8::ValueSerializer behind a RuntimeEnabledFeature. (Closed)

Created:
4 years, 3 months ago by jbroman
Modified:
4 years, 3 months ago
Reviewers:
haraken, esprehn
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support structured clone atop v8::ValueSerializer behind a RuntimeEnabledFeature. There is further refactoring to be done to clean this up, but this is sufficient to make things mostly work. Notably this still does a copy into a 16-bit WTF::String because at present there is a significant amount of other code that assumes this. BUG=148757 Committed: https://crrev.com/e28e1e567c840430f2262b0df778cc07285a8c64 Cr-Commit-Position: refs/heads/master@{#415195}

Patch Set 1 #

Patch Set 2 : Merge branch 'master' into serialization-feature #

Total comments: 7

Patch Set 3 : switch to v8::Maybe<bool>::To #

Total comments: 2

Patch Set 4 : leave TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -1 line) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h View 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp View 1 2 3 2 chunks +40 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (25 generated)
jbroman
Further refactoring likely to follow, but this gets something working end to end.
4 years, 3 months ago (2016-08-28 18:29:44 UTC) #17
haraken
LGTM on my side. https://codereview.chromium.org/2277403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp (right): https://codereview.chromium.org/2277403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp#newcode742 third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp:742: if (!serializer.WriteValue(context(), value).FromMaybe(false)) { Use ...
4 years, 3 months ago (2016-08-29 14:12:14 UTC) #19
jbroman
https://codereview.chromium.org/2277403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp (right): https://codereview.chromium.org/2277403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp#newcode742 third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp:742: if (!serializer.WriteValue(context(), value).FromMaybe(false)) { On 2016/08/29 at 14:12:14, haraken ...
4 years, 3 months ago (2016-08-29 14:29:37 UTC) #20
haraken
https://codereview.chromium.org/2277403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp (right): https://codereview.chromium.org/2277403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp#newcode742 third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp:742: if (!serializer.WriteValue(context(), value).FromMaybe(false)) { On 2016/08/29 14:29:37, jbroman wrote: ...
4 years, 3 months ago (2016-08-29 16:25:01 UTC) #21
jbroman
https://codereview.chromium.org/2277403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp (right): https://codereview.chromium.org/2277403002/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp#newcode742 third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp:742: if (!serializer.WriteValue(context(), value).FromMaybe(false)) { On 2016/08/29 at 16:25:01, haraken ...
4 years, 3 months ago (2016-08-29 17:07:41 UTC) #23
haraken
LGTM https://codereview.chromium.org/2277403002/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp (right): https://codereview.chromium.org/2277403002/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp#newcode744 third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp:744: if (m_tryCatch.HasCaught()) { Add a TODO about how ...
4 years, 3 months ago (2016-08-29 17:09:06 UTC) #24
jbroman
https://codereview.chromium.org/2277403002/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp (right): https://codereview.chromium.org/2277403002/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp#newcode744 third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp:744: if (m_tryCatch.HasCaught()) { On 2016/08/29 at 17:09:05, haraken wrote: ...
4 years, 3 months ago (2016-08-29 17:16:15 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2277403002/60001
4 years, 3 months ago (2016-08-29 17:50:32 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2277403002/60001
4 years, 3 months ago (2016-08-29 20:15:39 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-08-30 06:03:16 UTC) #34
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 06:06:09 UTC) #36
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e28e1e567c840430f2262b0df778cc07285a8c64
Cr-Commit-Position: refs/heads/master@{#415195}

Powered by Google App Engine
This is Rietveld 408576698