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

Issue 2712783002: V8ScriptValueSerializer: Add a separate version 'envelope' for Blink format version. (Closed)

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

Description

V8ScriptValueSerializer: Add a separate version 'envelope' for Blink format version. With this change, Blink will write out a wire format version of its own before, and separate from, V8's. This will enable Blink to change the format it uses when writing DOM objects, without requiring a corresponding V8-side change to increment the wire format version. Versions less than 16 will continue to have only one envelope, with a version shared between V8 and Blink. BUG=686159 TBR=skyostil@chromium.org Review-Url: https://codereview.chromium.org/2712783002 Cr-Commit-Position: refs/heads/master@{#453123} Committed: https://chromium.googlesource.com/chromium/src/+/faff3132ee3d5a89a85baab94d99d80fa54559d1

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Merge branch 'master' into ssv-separate-version #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -12 lines) Patch
M content/browser/android/string_message_codec.cc View 1 1 chunk +7 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/crypto/subtle/resources/common.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp View 1 2 2 chunks +41 lines, -1 line 2 comments Download
M third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp View 2 chunks +22 lines, -1 line 2 comments Download
M third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializerTest.cpp View 1 2 chunks +16 lines, -1 line 0 comments Download

Messages

Total messages: 31 (18 generated)
jbroman
This, plus a v8-side change to prefix all host objects encoded by Blink with a ...
3 years, 10 months ago (2017-02-22 20:00:46 UTC) #4
jbroman
Note that two changes were needed due to things that are sensitive to the wire ...
3 years, 10 months ago (2017-02-23 22:09:04 UTC) #11
haraken
Sorry, I missed reviewing this... LGTM. https://codereview.chromium.org/2712783002/diff/40001/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp File third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp (right): https://codereview.chromium.org/2712783002/diff/40001/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp#newcode44 third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp:44: // kMinVersionForSeparateEnveloped. For ...
3 years, 10 months ago (2017-02-24 02:45:13 UTC) #14
jbroman
https://codereview.chromium.org/2712783002/diff/40001/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp File third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp (right): https://codereview.chromium.org/2712783002/diff/40001/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp#newcode44 third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp:44: // kMinVersionForSeparateEnveloped. On 2017/02/24 at 02:45:13, haraken wrote: > ...
3 years, 10 months ago (2017-02-24 15:38:47 UTC) #15
haraken
On 2017/02/24 15:38:47, jbroman wrote: > https://codereview.chromium.org/2712783002/diff/40001/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp > File > third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp > (right): > > ...
3 years, 10 months ago (2017-02-25 00:14:15 UTC) #16
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/2712783002/40001
3 years, 10 months ago (2017-02-25 03:38:37 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/373035)
3 years, 10 months ago (2017-02-25 03:45:16 UTC) #20
jbroman
+skyostil for content/browser/android/
3 years, 10 months ago (2017-02-25 06:16:43 UTC) #22
jbroman
On second thought, I'm going to TBR the content change because it's a simple consequence ...
3 years, 9 months ago (2017-02-26 18:49:05 UTC) #23
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/2712783002/40001
3 years, 9 months ago (2017-02-26 18:49:22 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/faff3132ee3d5a89a85baab94d99d80fa54559d1
3 years, 9 months ago (2017-02-26 20:49:26 UTC) #29
Sami
content/browser/android/ lgtm. https://codereview.chromium.org/2712783002/diff/40001/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp File third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp (right): https://codereview.chromium.org/2712783002/diff/40001/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp#newcode71 third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp:71: m_serializer.WriteHeader(); Should this still be inside the ...
3 years, 9 months ago (2017-02-27 17:35:04 UTC) #30
jbroman
3 years, 9 months ago (2017-02-27 18:59:46 UTC) #31
Message was sent while issue was closed.
https://codereview.chromium.org/2712783002/diff/40001/third_party/WebKit/Sour...
File
third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp
(right):

https://codereview.chromium.org/2712783002/diff/40001/third_party/WebKit/Sour...
third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp:71:
m_serializer.WriteHeader();
On 2017/02/27 at 17:35:04, Sami wrote:
> Should this still be inside the try-catch?

It can't throw, so it doesn't matter.

Powered by Google App Engine
This is Rietveld 408576698