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 1179113007: Implement onunhandledrejection / onrejectionhandled events (Closed)

Created:
5 years, 6 months ago by jochen (gone - plz use gerrit)
Modified:
5 years, 6 months ago
Reviewers:
domenic, yurys, philipj_slow
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, Inactive, falken, horo+watch_chromium.org, kinuko+worker_chromium.org, vivekg_samsung, vivekg
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Implement onunhandledrejection / onrejectionhandled events BUG=495801 R=yurys@chromium.org,domenic@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197255

Patch Set 1 #

Patch Set 2 : updates #

Patch Set 3 : rebase #

Patch Set 4 : rebaseline #

Patch Set 5 : update #

Patch Set 6 : updates #

Patch Set 7 : updates #

Total comments: 17

Patch Set 8 : updates #

Patch Set 9 : updates #

Total comments: 2

Patch Set 10 : updates #

Patch Set 11 : updates #

Patch Set 12 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1048 lines, -22 lines) Patch
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/promise-rejection-events-attached-in-event.html View 1 2 3 4 5 6 7 1 chunk +27 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/promise-rejection-events-console.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +44 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/promise-rejection-events-onerror.html View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/constructors/promise-rejection-event-constructor.html View 1 2 3 4 5 6 7 8 9 1 chunk +38 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/dom/promise-rejection-events.html View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/dom/resources/promise-rejection-events.js View 1 2 3 4 5 6 7 1 chunk +668 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/element-instance-property-listing-expected.txt View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 5 chunks +10 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 3 chunks +8 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/RejectedPromises.cpp View 1 2 3 4 5 6 7 8 9 5 chunks +56 lines, -22 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 5 chunks +7 lines, -0 lines 0 comments Download
M Source/core/events/EventTypeNames.in View 2 chunks +2 lines, -0 lines 0 comments Download
A Source/core/events/PromiseRejectionEvent.h View 1 2 3 4 5 6 7 8 9 1 chunk +47 lines, -0 lines 0 comments Download
A Source/core/events/PromiseRejectionEvent.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +38 lines, -0 lines 0 comments Download
A Source/core/events/PromiseRejectionEvent.idl View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
A Source/core/events/PromiseRejectionEventInit.idl View 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/frame/DOMWindowEventHandlers.h View 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/frame/WindowEventHandlers.idl View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/workers/WorkerGlobalScope.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/workers/WorkerGlobalScope.idl View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 29 (9 generated)
jochen (gone - plz use gerrit)
Yury, ptal Domenic, should "preventDefault" on unhandledrejection also cause rejectionhandled to not log to the ...
5 years, 6 months ago (2015-06-15 08:46:10 UTC) #1
yurys
lgtm
5 years, 6 months ago (2015-06-15 09:10:13 UTC) #2
domenic
On 2015/06/15 at 08:46:10, jochen wrote: > Yury, ptal > > Domenic, should "preventDefault" on ...
5 years, 6 months ago (2015-06-15 15:53:57 UTC) #3
jochen (gone - plz use gerrit)
On 2015/06/15 at 15:53:57, domenic wrote: > On 2015/06/15 at 08:46:10, jochen wrote: > > ...
5 years, 6 months ago (2015-06-15 15:57:54 UTC) #4
blink-reviews
I do not think we should. The purpose of the logging is to alert developers ...
5 years, 6 months ago (2015-06-15 16:01:39 UTC) #5
jochen (gone - plz use gerrit)
updated. I also rewrote your tests a bit, and added some more. any reason we ...
5 years, 6 months ago (2015-06-16 12:16:34 UTC) #6
jochen (gone - plz use gerrit)
+philipj for webexposed stuff
5 years, 6 months ago (2015-06-16 13:22:32 UTC) #8
philipj_slow
Took a quick peek, LGTM with some non-obviousness and IDL nitpickery. https://codereview.chromium.org/1179113007/diff/120001/Source/bindings/core/v8/RejectedPromises.cpp File Source/bindings/core/v8/RejectedPromises.cpp (right): ...
5 years, 6 months ago (2015-06-16 14:58:04 UTC) #9
domenic
On 2015/06/16 at 14:58:04, philipj wrote: > https://codereview.chromium.org/1179113007/diff/120001/Source/core/events/PromiseRejectionEvent.h#newcode29 > Source/core/events/PromiseRejectionEvent.h:29: initializer.setCancelable(true); > https://github.com/domenic/unhandled-rejections-browser-spec says "Let ...
5 years, 6 months ago (2015-06-16 15:31:47 UTC) #10
philipj_slow
On 2015/06/16 15:31:47, domenic wrote: > On 2015/06/16 at 14:58:04, philipj wrote: > > > ...
5 years, 6 months ago (2015-06-16 15:36:24 UTC) #11
domenic
https://codereview.chromium.org/1179113007/diff/120001/LayoutTests/fast/dom/resources/promise-rejection-events.js File LayoutTests/fast/dom/resources/promise-rejection-events.js (right): https://codereview.chromium.org/1179113007/diff/120001/LayoutTests/fast/dom/resources/promise-rejection-events.js#newcode5 LayoutTests/fast/dom/resources/promise-rejection-events.js:5: // You killed all my nice separating newlines :( ...
5 years, 6 months ago (2015-06-16 15:42:36 UTC) #12
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1179113007/diff/120001/LayoutTests/fast/dom/resources/promise-rejection-events.js File LayoutTests/fast/dom/resources/promise-rejection-events.js (right): https://codereview.chromium.org/1179113007/diff/120001/LayoutTests/fast/dom/resources/promise-rejection-events.js#newcode5 LayoutTests/fast/dom/resources/promise-rejection-events.js:5: // On 2015/06/16 at 15:42:36, domenic wrote: > You ...
5 years, 6 months ago (2015-06-16 18:08:18 UTC) #13
jochen (gone - plz use gerrit)
all comments addressed https://codereview.chromium.org/1179113007/diff/120001/LayoutTests/fast/dom/resources/promise-rejection-events.js File LayoutTests/fast/dom/resources/promise-rejection-events.js (right): https://codereview.chromium.org/1179113007/diff/120001/LayoutTests/fast/dom/resources/promise-rejection-events.js#newcode393 LayoutTests/fast/dom/resources/promise-rejection-events.js:393: setTimeout(function() { f(); }, 0); On ...
5 years, 6 months ago (2015-06-17 07:57:53 UTC) #14
philipj_slow
LGTM for me, but I've focused on the web-facing half and not so much the ...
5 years, 6 months ago (2015-06-17 08:31:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1179113007/160001
5 years, 6 months ago (2015-06-17 08:38:40 UTC) #18
philipj_slow
Maybe a follow-up if these comments are too late. https://codereview.chromium.org/1179113007/diff/160001/LayoutTests/fast/events/constructors/promise-rejection-event-constructor.html File LayoutTests/fast/events/constructors/promise-rejection-event-constructor.html (right): https://codereview.chromium.org/1179113007/diff/160001/LayoutTests/fast/events/constructors/promise-rejection-event-constructor.html#newcode11 LayoutTests/fast/events/constructors/promise-rejection-event-constructor.html:11: ...
5 years, 6 months ago (2015-06-17 08:49:16 UTC) #19
philipj_slow
LGTM again, all things cancelable seem to be in order now, tested by fast/dom/promise-rejection-events-console.html and ...
5 years, 6 months ago (2015-06-17 09:48:28 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1179113007/200001
5 years, 6 months ago (2015-06-17 09:49:16 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1179113007/210001
5 years, 6 months ago (2015-06-17 11:11:43 UTC) #28
commit-bot: I haz the power
5 years, 6 months ago (2015-06-17 12:12:47 UTC) #29
Message was sent while issue was closed.
Committed patchset #12 (id:210001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197255

Powered by Google App Engine
This is Rietveld 408576698