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

Issue 30673002: More informative error messages for non-Transferables. (Closed)

Created:
7 years, 2 months ago by sof
Modified:
7 years, 1 month ago
Reviewers:
Mike West, Inactive
CC:
blink-reviews, jochen (gone - plz use gerrit), marja
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

More informative error messages for non-Transferables. Elaborate the TypeError exception reported if the various postMessage()s (on window, at the dedicated Worker global scope, or over MessagePorts) are ill-typed transferable arguments, supplying an error message indicating that the transferable argument isn't a sequence type. R= BUG=308730 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160323

Patch Set 1 #

Total comments: 5

Patch Set 2 : More informative error messages for non-Transferables. #

Total comments: 15

Patch Set 3 : More informative error messages for non-Transferables. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -33 lines) Patch
M LayoutTests/fast/dom/Window/window-postmessage-args.html View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/window-postmessage-args-expected.txt View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M LayoutTests/fast/events/message-port-multi-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/resources/message-port-multi.js View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M LayoutTests/fast/workers/worker-context-multi-port-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/workers/worker-multi-port-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/fast/workers/worker-onerror-09.html View 1 2 1 chunk +5 lines, -6 lines 0 comments Download
A LayoutTests/fast/workers/worker-onerror-09-expected.txt View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M Source/bindings/v8/ExceptionMessages.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/v8/ExceptionMessages.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M Source/bindings/v8/V8Binding.h View 1 2 6 chunks +14 lines, -6 lines 0 comments Download
M Source/bindings/v8/V8Utilities.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M Source/bindings/v8/V8Utilities.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8DedicatedWorkerGlobalScopeCustom.cpp View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M Source/bindings/v8/custom/V8MessagePortCustom.cpp View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M Source/bindings/v8/custom/V8WindowCustom.cpp View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M Source/bindings/v8/custom/V8WorkerCustom.cpp View 1 2 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
sof
Please have a look.
7 years, 2 months ago (2013-10-19 18:35:50 UTC) #1
Mike West
Thanks, I like this patch! A few comments, really just bikeshedding about the error messages. ...
7 years, 2 months ago (2013-10-21 06:51:21 UTC) #2
Inactive
7 years, 2 months ago (2013-10-21 13:13:35 UTC) #3
sof
On 2013/10/21 06:51:21, Mike West wrote: > Thanks, I like this patch! A few comments, ...
7 years, 2 months ago (2013-10-21 22:47:07 UTC) #4
Mike West
Thanks for going another round. Just a few nits at this point, LGTM once you ...
7 years, 2 months ago (2013-10-22 06:50:39 UTC) #5
sof
https://codereview.chromium.org/30673002/diff/110001/Source/bindings/v8/ExceptionMessages.cpp File Source/bindings/v8/ExceptionMessages.cpp (right): https://codereview.chromium.org/30673002/diff/110001/Source/bindings/v8/ExceptionMessages.cpp#newcode63 Source/bindings/v8/ExceptionMessages.cpp:63: return argument + " argument is not an array ...
7 years, 1 month ago (2013-10-22 16:06:56 UTC) #6
Mike West
LGTM. Assuming the bots are happy, please land it. :)
7 years, 1 month ago (2013-10-23 08:06:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/30673002/230001
7 years, 1 month ago (2013-10-23 09:01:33 UTC) #8
sof
On 2013/10/23 08:06:10, Mike West wrote: > LGTM. Assuming the bots are happy, please land ...
7 years, 1 month ago (2013-10-23 09:03:39 UTC) #9
commit-bot: I haz the power
7 years, 1 month ago (2013-10-23 10:03:57 UTC) #10
Message was sent while issue was closed.
Change committed as 160323

Powered by Google App Engine
This is Rietveld 408576698