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

Issue 2804533002: Update Error Event inside a worker to provide the exact exception value (Closed)

Created:
3 years, 8 months ago by yiyix
Modified:
3 years, 8 months ago
Reviewers:
falken, haraken, shimazu, nhiroki
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, nhiroki, shimazu+worker_chromium.org, blink-reviews-bindings_chromium.org, kinuko+worker_chromium.org, kinuko+serviceworker, blink-reviews, horo+watch_chromium.org, falken+watch_chromium.org, tzik, blink-worker-reviews_chromium.org, varkha
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update Error Event inside a worker to provide the exact exception value In WorkerOrWorkletScriptController.cpp, 'ErrorEvent' used to be created without exception value, so the exception, |m_error|, is always set to null. A new constructor of ErrorEvent is added in this patch which takes exception as input and set |m_error| to the exception value. TEST=error-script.js and error-worker-script.js BUG=640724 Review-Url: https://codereview.chromium.org/2804533002 Cr-Commit-Position: refs/heads/master@{#462458} Committed: https://chromium.googlesource.com/chromium/src/+/0662e1de8c6d9800c4baed479249c1fa5201c24c

Patch Set 1 #

Total comments: 28

Patch Set 2 : update tests #

Total comments: 6

Patch Set 3 : fix nits #

Total comments: 18

Patch Set 4 : address comments #

Total comments: 11

Patch Set 5 : rebase + comments #

Total comments: 11

Patch Set 6 : nits #

Total comments: 6

Patch Set 7 : nits #

Messages

Total messages: 54 (30 generated)
yiyix
@shimazu, could you please review this patch? Thank you.
3 years, 8 months ago (2017-04-05 06:43:08 UTC) #10
shimazu
https://codereview.chromium.org/2804533002/diff/40001/third_party/WebKit/LayoutTests/fast/workers/dedicated-worker-error-event.html File third_party/WebKit/LayoutTests/fast/workers/dedicated-worker-error-event.html (right): https://codereview.chromium.org/2804533002/diff/40001/third_party/WebKit/LayoutTests/fast/workers/dedicated-worker-error-event.html#newcode9 third_party/WebKit/LayoutTests/fast/workers/dedicated-worker-error-event.html:9: test(function() { Could you use promise_test to write async ...
3 years, 8 months ago (2017-04-05 07:23:23 UTC) #11
nhiroki
https://codereview.chromium.org/2804533002/diff/40001/third_party/WebKit/LayoutTests/fast/workers/resources/error-script.js File third_party/WebKit/LayoutTests/fast/workers/resources/error-script.js (right): https://codereview.chromium.org/2804533002/diff/40001/third_party/WebKit/LayoutTests/fast/workers/resources/error-script.js#newcode2 third_party/WebKit/LayoutTests/fast/workers/resources/error-script.js:2: postMessage({ source: "event listener", value: e.error }); I'm not ...
3 years, 8 months ago (2017-04-05 07:38:38 UTC) #13
yiyix
@shimazu, @nihiroki, could you please review this new patch? Thank you very much. https://codereview.chromium.org/2804533002/diff/40001/third_party/WebKit/LayoutTests/fast/workers/dedicated-worker-error-event.html File ...
3 years, 8 months ago (2017-04-05 09:02:56 UTC) #18
shimazu
I know the style is difficult... https://codereview.chromium.org/2804533002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/service-worker-error-event.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/service-worker-error-event.html (right): https://codereview.chromium.org/2804533002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/service-worker-error-event.html#newcode20 third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/service-worker-error-event.html:20: navigator.serviceWorker.onmessage = function(event) ...
3 years, 8 months ago (2017-04-05 09:29:40 UTC) #19
yiyix
@shimazu and @nhiroki, Could you please review this new patch? Thank you. https://codereview.chromium.org/2804533002/diff/60001/third_party/WebKit/LayoutTests/fast/workers/dedicated-worker-error-event.html File third_party/WebKit/LayoutTests/fast/workers/dedicated-worker-error-event.html ...
3 years, 8 months ago (2017-04-05 09:56:57 UTC) #20
yiyix
3 years, 8 months ago (2017-04-05 14:33:03 UTC) #22
nhiroki
https://codereview.chromium.org/2804533002/diff/80001/third_party/WebKit/LayoutTests/fast/workers/dedicated-worker-error-event.html File third_party/WebKit/LayoutTests/fast/workers/dedicated-worker-error-event.html (right): https://codereview.chromium.org/2804533002/diff/80001/third_party/WebKit/LayoutTests/fast/workers/dedicated-worker-error-event.html#newcode7 third_party/WebKit/LayoutTests/fast/workers/dedicated-worker-error-event.html:7: promise_test(function(t) { Can you add a comment like this? ...
3 years, 8 months ago (2017-04-06 01:50:35 UTC) #23
shimazu
Let me put an additional comment. https://codereview.chromium.org/2804533002/diff/80001/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/service-worker-error-event.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/service-worker-error-event.html (right): https://codereview.chromium.org/2804533002/diff/80001/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/service-worker-error-event.html#newcode1 third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/service-worker-error-event.html:1: <!DOCTYPE html> On ...
3 years, 8 months ago (2017-04-06 02:30:48 UTC) #24
yiyix
@shimazu, @nhiroki: could you please take another look at this patch? Thank you https://codereview.chromium.org/2804533002/diff/80001/third_party/WebKit/LayoutTests/fast/workers/dedicated-worker-error-event.html File ...
3 years, 8 months ago (2017-04-06 04:38:19 UTC) #25
shimazu
lgtm with nits // Please wait for nhiroki's comment. https://codereview.chromium.org/2804533002/diff/100001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/error-worker.js File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/error-worker.js (right): https://codereview.chromium.org/2804533002/diff/100001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/error-worker.js#newcode9 third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/error-worker.js:9: ...
3 years, 8 months ago (2017-04-06 04:52:30 UTC) #26
nhiroki
https://codereview.chromium.org/2804533002/diff/80001/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/service-worker-error-event.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/service-worker-error-event.html (right): https://codereview.chromium.org/2804533002/diff/80001/third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/service-worker-error-event.html#newcode1 third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/service-worker-error-event.html:1: <!DOCTYPE html> On 2017/04/06 04:38:19, yiyix wrote: > On ...
3 years, 8 months ago (2017-04-06 04:56:45 UTC) #27
nhiroki
+haraken, can you review bindings/core and core/?
3 years, 8 months ago (2017-04-06 04:58:14 UTC) #29
haraken
LGTM
3 years, 8 months ago (2017-04-06 05:17:03 UTC) #30
yiyix
@nhiroki, could you please review this new patch? Thank you https://codereview.chromium.org/2804533002/diff/100001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/error-worker.js File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/error-worker.js (right): https://codereview.chromium.org/2804533002/diff/100001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/error-worker.js#newcode9 ...
3 years, 8 months ago (2017-04-06 06:33:56 UTC) #36
nhiroki
LGTM with nits. Thank you for working on this :) https://codereview.chromium.org/2804533002/diff/160001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/error-worker.js File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/error-worker.js (right): https://codereview.chromium.org/2804533002/diff/160001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/error-worker.js#newcode10 ...
3 years, 8 months ago (2017-04-06 06:56:50 UTC) #42
yiyix
@shimazu and @nhiroki, Thank you so much for the detailed review. https://codereview.chromium.org/2804533002/diff/160001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/error-worker.js File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/error-worker.js (right): ...
3 years, 8 months ago (2017-04-06 07:27:51 UTC) #43
shimazu
Still lgtm, thanks too! ٩(●˙▿˙●)۶
3 years, 8 months ago (2017-04-06 07:38:01 UTC) #44
falken
lgtm https://codereview.chromium.org/2804533002/diff/180001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/service-worker-error-event.https.html File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/service-worker-error-event.https.html (right): https://codereview.chromium.org/2804533002/diff/180001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/service-worker-error-event.https.html#newcode10 third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/service-worker-error-event.https.html:10: var errorname = 'testError' nit: error_name https://codereview.chromium.org/2804533002/diff/180001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/service-worker-error-event.https.html#newcode12 third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/service-worker-error-event.https.html:12: ...
3 years, 8 months ago (2017-04-06 07:52:41 UTC) #45
yiyix
https://codereview.chromium.org/2804533002/diff/180001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/service-worker-error-event.https.html File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/service-worker-error-event.https.html (right): https://codereview.chromium.org/2804533002/diff/180001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/service-worker-error-event.https.html#newcode10 third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/service-worker-error-event.https.html:10: var errorname = 'testError' On 2017/04/06 07:52:41, falken (ooo-ish ...
3 years, 8 months ago (2017-04-06 12:27:20 UTC) #46
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/2804533002/200001
3 years, 8 months ago (2017-04-06 12:28:28 UTC) #49
commit-bot: I haz the power
Committed patchset #7 (id:200001) as https://chromium.googlesource.com/chromium/src/+/0662e1de8c6d9800c4baed479249c1fa5201c24c
3 years, 8 months ago (2017-04-06 14:17:41 UTC) #52
jeffcarp
On 2017/04/06 at 14:17:41, commit-bot wrote: > Committed patchset #7 (id:200001) as https://chromium.googlesource.com/chromium/src/+/0662e1de8c6d9800c4baed479249c1fa5201c24c A GitHub ...
3 years, 8 months ago (2017-04-06 18:13:58 UTC) #53
jeffcarp
3 years, 8 months ago (2017-04-08 01:39:44 UTC) #54
Message was sent while issue was closed.
On 2017/04/06 at 18:13:58, jeffcarp wrote:
> On 2017/04/06 at 14:17:41, commit-bot wrote:
> > Committed patchset #7 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/0662e1de8c6d9800c4baed479249...
> 
> A GitHub WPT PR was created for this:
https://github.com/w3c/web-platform-tests/pull/5404
> But there was a trailing whitespace lint error. I'll fix it on the GitHub
branch to see if that goes through and update you here.

Update: the PR ran into infra issues but was force merged.
https://github.com/w3c/web-platform-tests/pull/5404

Powered by Google App Engine
This is Rietveld 408576698