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

Issue 111373003: Migrate bindings constructors to the new ExceptionState model. (Closed)

Created:
7 years ago by Mike West
Modified:
7 years ago
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, eae+blinkwatch, dglazkov+blink, abarth-chromium, kinuko, marja+watch_chromium.org, tommyw+watchlist_chromium.org, adamk+blink_chromium.org, Raymond Toy, haraken, Nate Chapin, watchdog-blink-watchlist_google.com, mkwst+watchlist_chromium.org, Inactive
Visibility:
Public.

Description

Migrate bindings constructors to the new ExceptionState model. This patch drops most 'failedToConstruct' instances outside of bindings, migrating to the new model where ExceptionState is initialized with the relevant data to generate a relevant exception message. As a drive-by, it also changes WebAudio error that aren't actually constructors to stop generating constructor-style error messages. BUG=270033 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163540

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase. #

Patch Set 3 : Ugh. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -268 lines) Patch
M LayoutTests/fast/eventsource/eventsource-constructor-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/files/blob-constructor.html View 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/files/blob-constructor-expected.txt View 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/files/file-constructor.html View 3 chunks +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/files/file-constructor-expected.txt View 3 chunks +5 lines, -5 lines 0 comments Download
M LayoutTests/fast/frames/sandboxed-iframe-workers-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/mediastream/RTCSessionDescription-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/workers/worker-constructor-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/worker-script-src-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/websocket/bad-sub-protocol-control-chars-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/websocket/bad-sub-protocol-empty-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/websocket/bad-sub-protocol-non-ascii-expected.txt View 1 chunk +7 lines, -7 lines 0 comments Download
M LayoutTests/http/tests/websocket/invalid-subprotocol-characters-expected.txt View 4 chunks +51 lines, -51 lines 0 comments Download
M LayoutTests/http/tests/websocket/invalid-subprotocols.html View 1 chunk +6 lines, -6 lines 0 comments Download
M LayoutTests/http/tests/websocket/invalid-subprotocols-expected.txt View 1 chunk +6 lines, -6 lines 0 comments Download
M LayoutTests/http/tests/websocket/url-parsing-expected.txt View 1 chunk +7 lines, -7 lines 0 comments Download
M LayoutTests/http/tests/workers/shared-worker-redirect-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/workers/worker-redirect-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/webaudio/delaynode-maxdelaylimit-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/webaudio/dom-exceptions-expected.txt View 1 chunk +18 lines, -18 lines 0 comments Download
M Source/bindings/scripts/code_generator_v8.pm View 1 8 chunks +7 lines, -8 lines 0 comments Download
M Source/bindings/tests/results/V8TestExtendedEvent.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceConstructor.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp View 4 chunks +3 lines, -4 lines 0 comments Download
M Source/bindings/v8/Dictionary.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/custom/V8BlobCustom.cpp View 4 chunks +9 lines, -3 lines 0 comments Download
M Source/bindings/v8/custom/V8BlobCustomHelpers.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/bindings/v8/custom/V8BlobCustomHelpers.cpp View 4 chunks +4 lines, -3 lines 0 comments Download
M Source/bindings/v8/custom/V8FileCustom.cpp View 4 chunks +14 lines, -5 lines 0 comments Download
M Source/core/dom/DOMURL.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/events/MessageEvent.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/workers/AbstractWorker.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/workers/SharedWorker.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webaudio/AudioContext.cpp View 11 chunks +39 lines, -81 lines 0 comments Download
M Source/modules/webaudio/DelayNode.cpp View 1 chunk +3 lines, -5 lines 0 comments Download
M Source/modules/webaudio/OfflineAudioContext.cpp View 1 chunk +4 lines, -16 lines 0 comments Download
M Source/web/SharedWorkerRepositoryClientImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Mike West
Hi Jochen, Sigbjørn. WDYT? -mike
7 years ago (2013-12-10 11:22:39 UTC) #1
Mike West
On 2013/12/10 11:22:39, Mike West wrote: > Hi Jochen, Sigbjørn. WDYT? > > -mike (Note, ...
7 years ago (2013-12-10 11:23:44 UTC) #2
sof
Nice, I wondered if the code generator could be improved in this regard just yesterday, ...
7 years ago (2013-12-10 11:36:54 UTC) #3
jochen (gone - plz use gerrit)
https://codereview.chromium.org/111373003/diff/1/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/111373003/diff/1/Source/bindings/scripts/code_generator_v8.pm#newcode2867 Source/bindings/scripts/code_generator_v8.pm:2867: spurious? https://codereview.chromium.org/111373003/diff/1/Source/modules/webaudio/DelayNode.cpp File Source/modules/webaudio/DelayNode.cpp (left): https://codereview.chromium.org/111373003/diff/1/Source/modules/webaudio/DelayNode.cpp#oldcode45 Source/modules/webaudio/DelayNode.cpp:45: NotSupportedError, can ...
7 years ago (2013-12-10 11:41:18 UTC) #4
Mike West
https://codereview.chromium.org/111373003/diff/1/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/111373003/diff/1/Source/bindings/scripts/code_generator_v8.pm#newcode2867 Source/bindings/scripts/code_generator_v8.pm:2867: On 2013/12/10 11:41:19, jochen wrote: > spurious? Yes (though ...
7 years ago (2013-12-10 11:51:27 UTC) #5
jochen (gone - plz use gerrit)
Good practice and perl?? Har Har lgtm
7 years ago (2013-12-10 11:59:58 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/111373003/20001
7 years ago (2013-12-10 12:31:40 UTC) #7
Mike West
On 2013/12/10 12:31:40, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years ago (2013-12-10 12:49:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/111373003/40001
7 years ago (2013-12-10 12:52:26 UTC) #9
commit-bot: I haz the power
7 years ago (2013-12-10 15:57:32 UTC) #10
Message was sent while issue was closed.
Change committed as 163540

Powered by Google App Engine
This is Rietveld 408576698