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

Issue 607513002: Onerror return value handling in workers fixed as per HTML5 spec.

Created:
6 years, 2 months ago by Mayur Kankanwadi
Modified:
6 years, 1 month ago
CC:
blink-reviews, falken, horo+watch_chromium.org, kinuko+worker_chromium.org, lgombos
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Onerror return value handling in workers fixed as per HTML5 spec. This CL fixes the error propagation based on the return value of the error event handler. As per the spec if the value returned is true, the event should be cancelled, if false it should be propagated up till the Document. This is based on the interpretation of the following spec sections: https://html.spec.whatwg.org/multipage/webappapis.html#event-handlers https://html.spec.whatwg.org/multipage/workers.html#runtime-script-errors-2 BUG=144593

Patch Set 1 #

Patch Set 2 : Rebase done. #

Patch Set 3 : Added new layout tests and rebaselined two of them. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -4 lines) Patch
A LayoutTests/fast/workers/resources/worker-error-handler-worker.js View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
A LayoutTests/fast/workers/resources/worker-error-handler-workerglobalscope.js View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
A LayoutTests/fast/workers/worker-error-handler-window.html View 1 2 1 chunk +60 lines, -0 lines 0 comments Download
A LayoutTests/fast/workers/worker-error-handler-window-expected.txt View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
A LayoutTests/fast/workers/worker-error-handler-worker.html View 1 2 1 chunk +57 lines, -0 lines 0 comments Download
A LayoutTests/fast/workers/worker-error-handler-worker-expected.txt View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A LayoutTests/fast/workers/worker-error-handler-workerglobalscope.html View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
A LayoutTests/fast/workers/worker-error-handler-workerglobalscope-expected.txt View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M LayoutTests/fast/workers/worker-onerror-04-expected.txt View 1 2 1 chunk +0 lines, -1 line 1 comment Download
M LayoutTests/storage/indexeddb/resources/transaction-complete-workers.js View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/transaction-complete-workers-expected.txt View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/workers/WorkerMessagingProxy.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 13 (2 generated)
Mayur Kankanwadi
PTAL at the fix. This CL currently breaks the following two layout tests: fast/workers/worker-onerror-04.html storage/indexeddb/transaction-complete-workers.html ...
6 years, 2 months ago (2014-09-25 14:23:21 UTC) #2
Mike West
What does Firefox do in these scenarios?
6 years, 2 months ago (2014-09-26 11:31:16 UTC) #4
Mayur Kankanwadi
On 2014/09/26 11:31:16, Mike West wrote: > What does Firefox do in these scenarios? FF ...
6 years, 2 months ago (2014-09-26 11:38:50 UTC) #5
Mike West
On 2014/09/26 11:38:50, Mayur Kankanwadi wrote: > On 2014/09/26 11:31:16, Mike West wrote: > > ...
6 years, 2 months ago (2014-09-26 11:49:07 UTC) #6
Mayur Kankanwadi
On 2014/09/26 11:49:07, Mike West wrote: > On 2014/09/26 11:38:50, Mayur Kankanwadi wrote: > > ...
6 years, 2 months ago (2014-09-26 11:50:24 UTC) #7
jochen (gone - plz use gerrit)
any updates on this? The CL looks good per se, but needs tests
6 years, 2 months ago (2014-10-07 14:32:55 UTC) #8
Mayur Kankanwadi
On 2014/10/07 14:32:55, jochen wrote: > any updates on this? The CL looks good per ...
6 years, 2 months ago (2014-10-07 14:55:52 UTC) #9
Mayur Kankanwadi
On 2014/10/07 14:55:52, Mayur Kankanwadi wrote: > On 2014/10/07 14:32:55, jochen wrote: > > any ...
6 years, 2 months ago (2014-10-08 15:17:02 UTC) #10
jochen (gone - plz use gerrit)
https://codereview.chromium.org/607513002/diff/40001/LayoutTests/fast/workers/worker-onerror-04-expected.txt File LayoutTests/fast/workers/worker-onerror-04-expected.txt (left): https://codereview.chromium.org/607513002/diff/40001/LayoutTests/fast/workers/worker-onerror-04-expected.txt#oldcode1 LayoutTests/fast/workers/worker-onerror-04-expected.txt:1: CONSOLE ERROR: line 7: Uncaught ReferenceError: foo is not ...
6 years, 2 months ago (2014-10-09 11:27:29 UTC) #11
jochen (gone - plz use gerrit)
any updates on this?
6 years, 1 month ago (2014-11-12 15:05:02 UTC) #12
Mayur Kankanwadi
6 years, 1 month ago (2014-11-13 14:34:17 UTC) #13
On 2014/11/12 15:05:02, jochen (slow) wrote:
> any updates on this?

Hi jochen,
Sorry for the delay in updates.
I am currently stuck with some other matters.
Hope to resolve them soon.
So please bear with me.
Best regards,
Mayur Kankanwadi.

Powered by Google App Engine
This is Rietveld 408576698