Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(2)

Issue 1181353005: Return null when no promise/reason is given in PromiseRejectionEvent (Closed)

Created:
4 years, 10 months ago by jochen (gone - plz use gerrit)
Modified:
4 years, 10 months ago
Reviewers:
haraken, yhirano, bashi
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, Inactive, vivekg_samsung, vivekg
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Return null when no promise/reason is given in PromiseRejectionEvent BUG=495801 R=haraken@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197475

Patch Set 1 #

Total comments: 8

Patch Set 2 : updates #

Total comments: 13

Patch Set 3 : updates #

Total comments: 1

Patch Set 4 : updates #

Patch Set 5 : updates #

Patch Set 6 : updates #

Total comments: 2

Patch Set 7 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -16 lines) Patch
M LayoutTests/fast/dom/promise-rejection-events-console.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/constructors/promise-rejection-event-constructor.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/dom/resources/promise-rejection-events.js View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/core/v8/RejectedPromises.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
A Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp View 1 2 3 4 5 6 1 chunk +28 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/custom/custom.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/events/PromiseRejectionEvent.h View 1 2 3 4 5 3 chunks +5 lines, -4 lines 0 comments Download
M Source/core/events/PromiseRejectionEvent.cpp View 1 2 3 4 5 6 2 chunks +12 lines, -5 lines 0 comments Download
M Source/core/events/PromiseRejectionEvent.idl View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 30 (4 generated)
jochen (gone - plz use gerrit)
4 years, 10 months ago (2015-06-18 17:05:43 UTC) #1
haraken
https://codereview.chromium.org/1181353005/diff/1/Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp File Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp (right): https://codereview.chromium.org/1181353005/diff/1/Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp#newcode11 Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp:11: #include "bindings/core/v8/V8History.h" This wouldn't be needed. https://codereview.chromium.org/1181353005/diff/1/Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp#newcode12 Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp:12: #include ...
4 years, 10 months ago (2015-06-18 17:52:09 UTC) #2
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1181353005/diff/1/Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp File Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp (right): https://codereview.chromium.org/1181353005/diff/1/Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp#newcode20 Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp:20: v8::Local<v8::Value> result = V8HiddenValue::getHiddenValue(isolate, info.Holder(), V8HiddenValue::promise(isolate)); On 2015/06/18 at ...
4 years, 10 months ago (2015-06-18 18:53:14 UTC) #3
haraken
https://codereview.chromium.org/1181353005/diff/1/Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp File Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp (right): https://codereview.chromium.org/1181353005/diff/1/Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp#newcode20 Source/bindings/core/v8/custom/V8PromiseRejectionEventCustom.cpp:20: v8::Local<v8::Value> result = V8HiddenValue::getHiddenValue(isolate, info.Holder(), V8HiddenValue::promise(isolate)); On 2015/06/18 18:53:14, ...
4 years, 10 months ago (2015-06-18 19:01:00 UTC) #4
jochen (gone - plz use gerrit)
ptal
4 years, 10 months ago (2015-06-18 20:09:49 UTC) #5
jochen (gone - plz use gerrit)
we can't have hidden values until the event has a wrapper. I could force wrapper ...
4 years, 10 months ago (2015-06-18 20:17:55 UTC) #6
haraken
Mostly looks good. https://codereview.chromium.org/1181353005/diff/20001/Source/bindings/core/v8/RejectedPromises.cpp File Source/bindings/core/v8/RejectedPromises.cpp (right): https://codereview.chromium.org/1181353005/diff/20001/Source/bindings/core/v8/RejectedPromises.cpp#newcode152 Source/bindings/core/v8/RejectedPromises.cpp:152: ScriptState* m_scriptState; yhirano@: Why is this ...
4 years, 10 months ago (2015-06-19 11:38:03 UTC) #7
haraken
+yhirano
4 years, 10 months ago (2015-06-19 11:38:16 UTC) #9
jochen (gone - plz use gerrit)
ptal https://codereview.chromium.org/1181353005/diff/20001/Source/bindings/core/v8/RejectedPromises.cpp File Source/bindings/core/v8/RejectedPromises.cpp (right): https://codereview.chromium.org/1181353005/diff/20001/Source/bindings/core/v8/RejectedPromises.cpp#newcode152 Source/bindings/core/v8/RejectedPromises.cpp:152: ScriptState* m_scriptState; On 2015/06/19 at 11:38:02, haraken wrote: ...
4 years, 10 months ago (2015-06-19 12:06:21 UTC) #10
yhirano
https://codereview.chromium.org/1181353005/diff/20001/Source/bindings/core/v8/RejectedPromises.cpp File Source/bindings/core/v8/RejectedPromises.cpp (right): https://codereview.chromium.org/1181353005/diff/20001/Source/bindings/core/v8/RejectedPromises.cpp#newcode152 Source/bindings/core/v8/RejectedPromises.cpp:152: ScriptState* m_scriptState; On 2015/06/19 11:38:02, haraken wrote: > > ...
4 years, 10 months ago (2015-06-19 12:08:45 UTC) #11
haraken
https://codereview.chromium.org/1181353005/diff/20001/Source/bindings/core/v8/RejectedPromises.cpp File Source/bindings/core/v8/RejectedPromises.cpp (right): https://codereview.chromium.org/1181353005/diff/20001/Source/bindings/core/v8/RejectedPromises.cpp#newcode152 Source/bindings/core/v8/RejectedPromises.cpp:152: ScriptState* m_scriptState; On 2015/06/19 12:06:21, jochen wrote: > On ...
4 years, 10 months ago (2015-06-19 12:17:33 UTC) #12
jochen (gone - plz use gerrit)
On 2015/06/19 at 12:17:33, haraken wrote: > https://codereview.chromium.org/1181353005/diff/20001/Source/bindings/core/v8/RejectedPromises.cpp > File Source/bindings/core/v8/RejectedPromises.cpp (right): > > https://codereview.chromium.org/1181353005/diff/20001/Source/bindings/core/v8/RejectedPromises.cpp#newcode152 ...
4 years, 10 months ago (2015-06-19 12:32:05 UTC) #13
jochen (gone - plz use gerrit)
it looks like custom bindings don't depend on idl generation, an so incremental builds are ...
4 years, 10 months ago (2015-06-19 12:47:33 UTC) #14
haraken
On 2015/06/19 12:32:05, jochen wrote: > On 2015/06/19 at 12:17:33, haraken wrote: > > > ...
4 years, 10 months ago (2015-06-19 12:52:56 UTC) #15
jochen (gone - plz use gerrit)
On 2015/06/19 at 12:52:56, haraken wrote: > On 2015/06/19 12:32:05, jochen wrote: > > On ...
4 years, 10 months ago (2015-06-19 12:55:40 UTC) #16
haraken
On 2015/06/19 12:55:40, jochen wrote: > On 2015/06/19 at 12:52:56, haraken wrote: > > On ...
4 years, 10 months ago (2015-06-19 12:59:47 UTC) #17
jochen (gone - plz use gerrit)
On 2015/06/19 at 12:59:47, haraken wrote: > On 2015/06/19 12:55:40, jochen wrote: > > On ...
4 years, 10 months ago (2015-06-19 13:02:03 UTC) #18
haraken
On 2015/06/19 13:02:03, jochen wrote: > On 2015/06/19 at 12:59:47, haraken wrote: > > On ...
4 years, 10 months ago (2015-06-19 13:13:36 UTC) #19
jochen (gone - plz use gerrit)
On 2015/06/19 at 13:13:36, haraken wrote: > On 2015/06/19 13:02:03, jochen wrote: > > On ...
4 years, 10 months ago (2015-06-19 13:15:12 UTC) #20
haraken
On 2015/06/19 13:15:12, jochen wrote: > On 2015/06/19 at 13:13:36, haraken wrote: > > On ...
4 years, 10 months ago (2015-06-19 13:17:57 UTC) #21
haraken
+bashi, an expert of EventInits In short, I'm wondering whether the default value of PromiseRejectionEvent::promise ...
4 years, 10 months ago (2015-06-19 13:21:42 UTC) #23
jochen (gone - plz use gerrit)
moved the world check to the event. undefined as null doesn't work because it's valid ...
4 years, 10 months ago (2015-06-19 13:29:17 UTC) #24
haraken
LGTM. Thanks for a lot of iterations. https://codereview.chromium.org/1181353005/diff/100001/Source/core/events/PromiseRejectionEvent.cpp File Source/core/events/PromiseRejectionEvent.cpp (right): https://codereview.chromium.org/1181353005/diff/100001/Source/core/events/PromiseRejectionEvent.cpp#newcode39 Source/core/events/PromiseRejectionEvent.cpp:39: return ScriptPromise(); ...
4 years, 10 months ago (2015-06-19 13:46:55 UTC) #25
jochen (gone - plz use gerrit)
moved reason() to non-custom bindings
4 years, 10 months ago (2015-06-19 13:58:54 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181353005/120001
4 years, 10 months ago (2015-06-19 13:58:59 UTC) #29
commit-bot: I haz the power
4 years, 10 months ago (2015-06-19 15:03:55 UTC) #30
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197475

Powered by Google App Engine
This is Rietveld 408576698