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

Issue 2316763002: Implement v8::ValueSerializer::Delegate to throw DOMException for DataCloneError. (Closed)

Created:
4 years, 3 months ago by jbroman
Modified:
4 years, 3 months ago
Reviewers:
haraken
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

Implement v8::ValueSerializer::Delegate to throw DOMException for DataCloneError. This allows V8 to indirectly throw a DOMException, as is required to handle certain kinds of errors encountered during serialization. BUG=chromium:148757 Committed: https://crrev.com/15b0869d2e654f0fa8c9b37ba1cca9a2a942f66c Cr-Commit-Position: refs/heads/master@{#417184}

Patch Set 1 #

Total comments: 4

Patch Set 2 : GC_PLUGIN_IGNORE #

Total comments: 6

Patch Set 3 : explanatory comment #

Patch Set 4 : V8ThrowException::createDOMException #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -9 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ExceptionState.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.h View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp View 1 2 3 4 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 40 (18 generated)
jbroman
We have to throw and clear the exception so that V8 sees the exception pending ...
4 years, 3 months ago (2016-09-06 20:38:40 UTC) #4
jbroman
https://codereview.chromium.org/2316763002/diff/1/third_party/WebKit/Source/bindings/core/v8/ExceptionState.h File third_party/WebKit/Source/bindings/core/v8/ExceptionState.h (left): https://codereview.chromium.org/2316763002/diff/1/third_party/WebKit/Source/bindings/core/v8/ExceptionState.h#oldcode53 third_party/WebKit/Source/bindings/core/v8/ExceptionState.h:53: STACK_ALLOCATED(); This change was made because the blink-gc plugin ...
4 years, 3 months ago (2016-09-06 20:39:27 UTC) #5
haraken
https://codereview.chromium.org/2316763002/diff/1/third_party/WebKit/Source/bindings/core/v8/ExceptionState.h File third_party/WebKit/Source/bindings/core/v8/ExceptionState.h (left): https://codereview.chromium.org/2316763002/diff/1/third_party/WebKit/Source/bindings/core/v8/ExceptionState.h#oldcode53 third_party/WebKit/Source/bindings/core/v8/ExceptionState.h:53: STACK_ALLOCATED(); On 2016/09/06 20:39:27, jbroman wrote: > This change ...
4 years, 3 months ago (2016-09-07 00:27:54 UTC) #8
jbroman
https://codereview.chromium.org/2316763002/diff/1/third_party/WebKit/Source/bindings/core/v8/ExceptionState.h File third_party/WebKit/Source/bindings/core/v8/ExceptionState.h (left): https://codereview.chromium.org/2316763002/diff/1/third_party/WebKit/Source/bindings/core/v8/ExceptionState.h#oldcode53 third_party/WebKit/Source/bindings/core/v8/ExceptionState.h:53: STACK_ALLOCATED(); On 2016/09/07 at 00:27:54, haraken wrote: > On ...
4 years, 3 months ago (2016-09-07 01:03:34 UTC) #9
jbroman
https://codereview.chromium.org/2316763002/diff/1/third_party/WebKit/Source/bindings/core/v8/ExceptionState.h File third_party/WebKit/Source/bindings/core/v8/ExceptionState.h (left): https://codereview.chromium.org/2316763002/diff/1/third_party/WebKit/Source/bindings/core/v8/ExceptionState.h#oldcode53 third_party/WebKit/Source/bindings/core/v8/ExceptionState.h:53: STACK_ALLOCATED(); Also, the comment says: // Classes that contain ...
4 years, 3 months ago (2016-09-07 01:13:16 UTC) #10
haraken
On 2016/09/07 01:03:34, jbroman wrote: > https://codereview.chromium.org/2316763002/diff/1/third_party/WebKit/Source/bindings/core/v8/ExceptionState.h > File third_party/WebKit/Source/bindings/core/v8/ExceptionState.h (left): > > https://codereview.chromium.org/2316763002/diff/1/third_party/WebKit/Source/bindings/core/v8/ExceptionState.h#oldcode53 > ...
4 years, 3 months ago (2016-09-07 01:25:55 UTC) #11
jbroman
On 2016/09/07 at 01:25:55, haraken wrote: > On 2016/09/07 01:03:34, jbroman wrote: > > https://codereview.chromium.org/2316763002/diff/1/third_party/WebKit/Source/bindings/core/v8/ExceptionState.h ...
4 years, 3 months ago (2016-09-07 01:37:15 UTC) #12
haraken
On 2016/09/07 01:37:15, jbroman wrote: > On 2016/09/07 at 01:25:55, haraken wrote: > > On ...
4 years, 3 months ago (2016-09-07 01:52:31 UTC) #13
jbroman
Alright, what do you think about me filing a bug for this, and marking V8ScriptValueSerializer ...
4 years, 3 months ago (2016-09-07 02:14:56 UTC) #14
haraken
On 2016/09/07 02:14:56, jbroman wrote: > Alright, what do you think about me filing a ...
4 years, 3 months ago (2016-09-07 02:22:45 UTC) #15
jbroman
PTAL.
4 years, 3 months ago (2016-09-07 13:39:43 UTC) #18
haraken
https://codereview.chromium.org/2316763002/diff/20001/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/2316763002/diff/20001/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp#newcode92 third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp:92: m_exceptionState->clearException(); BTW, it looks nasty to set ExceptionState and ...
4 years, 3 months ago (2016-09-07 14:49:17 UTC) #19
jbroman
https://codereview.chromium.org/2316763002/diff/20001/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/2316763002/diff/20001/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp#newcode92 third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp:92: m_exceptionState->clearException(); On 2016/09/07 at 14:49:17, haraken wrote: > BTW, ...
4 years, 3 months ago (2016-09-07 15:05:25 UTC) #20
haraken
https://codereview.chromium.org/2316763002/diff/20001/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/2316763002/diff/20001/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp#newcode91 third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp:91: V8ThrowException::throwException(m_scriptState->isolate(), m_exceptionState->getException()); BTW, is this a right place to ...
4 years, 3 months ago (2016-09-07 15:39:07 UTC) #23
jbroman
https://codereview.chromium.org/2316763002/diff/20001/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/2316763002/diff/20001/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp#newcode91 third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp:91: V8ThrowException::throwException(m_scriptState->isolate(), m_exceptionState->getException()); On 2016/09/07 at 15:39:07, haraken wrote: > ...
4 years, 3 months ago (2016-09-07 15:43:38 UTC) #24
haraken
On 2016/09/07 15:43:38, jbroman wrote: > https://codereview.chromium.org/2316763002/diff/20001/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp > File > third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp > (right): > > ...
4 years, 3 months ago (2016-09-07 15:58:57 UTC) #25
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/2316763002/40001
4 years, 3 months ago (2016-09-07 18:30:18 UTC) #28
jbroman
On second thought, there is an advantage to using V8ThrowException::createDOMException, which is that it lets ...
4 years, 3 months ago (2016-09-07 19:49:00 UTC) #32
haraken
LGTM
4 years, 3 months ago (2016-09-07 23:21:00 UTC) #35
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/2316763002/60001
4 years, 3 months ago (2016-09-08 03:58:04 UTC) #37
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-08 04:01:25 UTC) #38
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 04:02:51 UTC) #40
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/15b0869d2e654f0fa8c9b37ba1cca9a2a942f66c
Cr-Commit-Position: refs/heads/master@{#417184}

Powered by Google App Engine
This is Rietveld 408576698