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

Issue 98783003: Make HTMLOptionsCollection report TypeErrors. (Closed)

Created:
7 years ago by sof
Modified:
7 years ago
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, haraken, Nate Chapin, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Make HTMLOptionsCollection report TypeErrors. Switch exceptions to throw TypeError instead of TypeMismatchError when handling incorrectly typed values over HTMLOptionsCollection methods and accessors. This aligns behavior with WebIDL, Gecko and Trident. (Change also includes a drive-by fix to the TextTrackCue constructor error message.) R=mkwst BUG=270033 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162988

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add TextTrackCue() exception handling test #

Messages

Total messages: 7 (0 generated)
sof
"Modernize" some exceptions reported; at your leisure, please take a look.
7 years ago (2013-12-02 11:13:02 UTC) #1
Mike West
LGTM. https://codereview.chromium.org/98783003/diff/1/Source/bindings/v8/custom/V8TextTrackCueCustom.cpp File Source/bindings/v8/custom/V8TextTrackCueCustom.cpp (left): https://codereview.chromium.org/98783003/diff/1/Source/bindings/v8/custom/V8TextTrackCueCustom.cpp#oldcode48 Source/bindings/v8/custom/V8TextTrackCueCustom.cpp:48: throwTypeError(ExceptionMessages::failedToExecute("Constructor", "TextTrackCue", ExceptionMessages::notEnoughArguments(3, info.Length())), info.GetIsolate()); This needs a ...
7 years ago (2013-12-02 11:18:12 UTC) #2
sof
https://codereview.chromium.org/98783003/diff/1/Source/core/html/HTMLOptionsCollection.cpp File Source/core/html/HTMLOptionsCollection.cpp (right): https://codereview.chromium.org/98783003/diff/1/Source/core/html/HTMLOptionsCollection.cpp#newcode128 Source/core/html/HTMLOptionsCollection.cpp:128: exceptionState.throwTypeError(ExceptionMessages::failedToSet(String::number(index), "HTMLOptionsCollection", "The element provided was not an HTMLOptionElement.")); ...
7 years ago (2013-12-02 11:21:55 UTC) #3
sof
https://codereview.chromium.org/98783003/diff/1/Source/bindings/v8/custom/V8TextTrackCueCustom.cpp File Source/bindings/v8/custom/V8TextTrackCueCustom.cpp (left): https://codereview.chromium.org/98783003/diff/1/Source/bindings/v8/custom/V8TextTrackCueCustom.cpp#oldcode48 Source/bindings/v8/custom/V8TextTrackCueCustom.cpp:48: throwTypeError(ExceptionMessages::failedToExecute("Constructor", "TextTrackCue", ExceptionMessages::notEnoughArguments(3, info.Length())), info.GetIsolate()); On 2013/12/02 11:18:13, Mike ...
7 years ago (2013-12-02 11:47:57 UTC) #4
Mike West
LGTM again, thanks.
7 years ago (2013-12-02 12:01:34 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/98783003/20001
7 years ago (2013-12-02 12:02:03 UTC) #6
commit-bot: I haz the power
7 years ago (2013-12-02 13:50:34 UTC) #7
Message was sent while issue was closed.
Change committed as 162988

Powered by Google App Engine
This is Rietveld 408576698