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

Issue 2090953006: [Blink-Workers]Set verbosity of the external exception handler.

Created:
4 years, 6 months ago by sivag
Modified:
4 years, 4 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Blink-Workers]Set verbosity of the external exception handler. In case of workers, by default exceptions that are caught by an external exception handler are not reported. Call SetVerbose with true to report them. BUG=590219

Patch Set 1 #

Patch Set 2 : Set verbosity of the external exception handler. #

Patch Set 3 : Set verbosity of the external exception handler. #

Patch Set 4 : Fix failed tests. #

Patch Set 5 : Fix flaky test. #

Total comments: 3

Patch Set 6 : Fix test worker-onerror-05 as per comments #

Total comments: 3

Patch Set 7 : code changed as per the comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -58 lines) Patch
M third_party/WebKit/LayoutTests/csspaint/registerPaint-expected.txt View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/workers/resources/onerror-test.js View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/workers/worker-constructor.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/workers/worker-constructor-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/workers/worker-onerror-04.html View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/workers/worker-onerror-04-expected.txt View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/workers/worker-onerror-05.html View 1 2 6 1 chunk +5 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/workers/worker-onerror-05-expected.txt View 1 2 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/workers/worker-onerror-07.html View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/workers/worker-onerror-07-expected.txt View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/workers/worker-importScripts-onerror-crossorigin.html View 1 2 3 1 chunk +9 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/workers/worker-importScripts-onerror-crossorigin-expected.txt View 1 2 3 1 chunk +9 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/workers/worker-importScripts-onerror-redirect-to-crossorigin.html View 1 2 3 1 chunk +9 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/workers/worker-importScripts-onerror-redirect-to-crossorigin-expected.txt View 1 2 3 1 chunk +9 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-worker-nested-imports-syntax-error-expected.txt View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 48 (28 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2090953006/1
4 years, 6 months ago (2016-06-24 08:25:44 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/249685)
4 years, 6 months ago (2016-06-24 09:02:38 UTC) #6
sivag
Few layout tests are failing after this change, i am trying to fix those.
4 years, 6 months ago (2016-06-24 11:34:43 UTC) #11
nhiroki
Sorry for my delayed reply and thank you for working on this! This change looks ...
4 years, 5 months ago (2016-06-28 07:34:38 UTC) #12
haraken
This change makes sense. We're setting the verbose flag on the main thread already. LGTM.
4 years, 5 months ago (2016-06-28 08:00:24 UTC) #13
sivag
By enabling verbose mode, few of the worker tests needs to be changed. I just ...
4 years, 5 months ago (2016-07-07 07:35:57 UTC) #15
Mike West
The test failures look relevant.
4 years, 5 months ago (2016-07-20 07:26:52 UTC) #21
sivag
On 2016/07/20 07:26:52, Mike West wrote: > The test failures look relevant. hi mike, In ...
4 years, 5 months ago (2016-07-20 07:30:25 UTC) #22
sivag
ptal Layouttests updated.
4 years, 5 months ago (2016-07-22 15:39:30 UTC) #28
sivag
@ojan, mike can you ptal.. layouttests?
4 years, 5 months ago (2016-07-25 06:31:46 UTC) #29
nhiroki
I'll take a look again.
4 years, 5 months ago (2016-07-25 06:35:12 UTC) #30
nhiroki
https://codereview.chromium.org/2090953006/diff/80001/third_party/WebKit/LayoutTests/fast/workers/worker-onerror-05.html File third_party/WebKit/LayoutTests/fast/workers/worker-onerror-05.html (left): https://codereview.chromium.org/2090953006/diff/80001/third_party/WebKit/LayoutTests/fast/workers/worker-onerror-05.html#oldcode21 third_party/WebKit/LayoutTests/fast/workers/worker-onerror-05.html:21: return false; After SetVerbose(true), an error handler on Worker ...
4 years, 5 months ago (2016-07-25 08:30:34 UTC) #31
sivag
ptal.. https://codereview.chromium.org/2090953006/diff/80001/third_party/WebKit/LayoutTests/fast/workers/worker-onerror-05.html File third_party/WebKit/LayoutTests/fast/workers/worker-onerror-05.html (left): https://codereview.chromium.org/2090953006/diff/80001/third_party/WebKit/LayoutTests/fast/workers/worker-onerror-05.html#oldcode21 third_party/WebKit/LayoutTests/fast/workers/worker-onerror-05.html:21: return false; On 2016/07/25 08:30:34, nhiroki (slow) wrote: ...
4 years, 5 months ago (2016-07-25 13:34:04 UTC) #36
ojan
I'm probably not a good reviewer for this change. Removing myself. I think the current ...
4 years, 5 months ago (2016-07-25 21:54:46 UTC) #41
nhiroki
I'm a bit confused about SetVerbose(true). At first, I assumed that it's necessary to print ...
4 years, 5 months ago (2016-07-26 01:59:12 UTC) #42
haraken
On 2016/07/26 01:59:12, nhiroki (slow) wrote: > I'm a bit confused about SetVerbose(true). At first, ...
4 years, 4 months ago (2016-07-26 11:44:16 UTC) #43
sivag
On 2016/07/26 01:59:12, nhiroki wrote: > I'm a bit confused about SetVerbose(true). At first, I ...
4 years, 4 months ago (2016-07-27 13:14:40 UTC) #44
sivag
On 2016/07/26 11:44:16, haraken wrote: > On 2016/07/26 01:59:12, nhiroki (slow) wrote: > > I'm ...
4 years, 4 months ago (2016-07-27 13:16:06 UTC) #45
sivag
https://codereview.chromium.org/2090953006/diff/100001/third_party/WebKit/LayoutTests/fast/workers/worker-constructor.html File third_party/WebKit/LayoutTests/fast/workers/worker-constructor.html (right): https://codereview.chromium.org/2090953006/diff/100001/third_party/WebKit/LayoutTests/fast/workers/worker-constructor.html#newcode16 third_party/WebKit/LayoutTests/fast/workers/worker-constructor.html:16: "testEmptyScriptUrl", On 2016/07/26 01:59:11, nhiroki wrote: > Why did ...
4 years, 4 months ago (2016-07-27 13:20:52 UTC) #46
sivag
4 years, 4 months ago (2016-07-29 09:29:32 UTC) #48
https://codereview.chromium.org/2090953006/diff/100001/third_party/WebKit/Lay...
File third_party/WebKit/LayoutTests/fast/workers/worker-constructor.html
(right):

https://codereview.chromium.org/2090953006/diff/100001/third_party/WebKit/Lay...
third_party/WebKit/LayoutTests/fast/workers/worker-constructor.html:16:
"testEmptyScriptUrl",
On 2016/07/26 01:59:11, nhiroki wrote:
> Why did you move this test case?

After enabling verbose the order of test is getting effected.
When test [1] new Worker("") gets called before test [2] new
Worker("emptyscript.js")
in both cases test[1] onError is getting called.

If i make test [1] to  new Worker("invalid.js") , with out changing the order
the respective onerror functions of [1][2] get called.

Any pointers, how should we proceed further here?

Powered by Google App Engine
This is Rietveld 408576698