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

Issue 974823002: Add [TypeChecking=Interface] to Range interface (Closed)

Created:
5 years, 9 months ago by Jens Widell
Modified:
5 years, 9 months ago
Reviewers:
philipj_slow
CC:
blink-reviews, arv+blink, vivekg, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, vivekg_samsung, Inactive, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Reland: Add [TypeChecking=Interface] to Range interface All functions already threw exceptions for invalid argument values, but DOMException exceptions instead of TypeError exceptions. Throwing TypeError exceptions matches Firefox's behavior. Note that the null checks are kept in the implementation since many of the functions are called from C++ code that in some cases depend on the existing error handling of invalid input. BUG=462561 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191442

Patch Set 1 #

Patch Set 2 : rebased #

Patch Set 3 : fix test expectation #

Patch Set 4 : keep C++-side checks #

Patch Set 5 : #

Patch Set 6 : add FIXME comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -15 lines) Patch
A LayoutTests/fast/dom/Range/invalid-arguments.html View 1 chunk +33 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Range/invalid-arguments-expected.txt View 1 chunk +20 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/Range/range-compareNode.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/Range/range-intersectsNode-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/text/first-letter-bad-line-boxes-crash-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Range.cpp View 1 2 3 4 5 10 chunks +20 lines, -10 lines 0 comments Download
M Source/core/dom/Range.idl View 1 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
Jens Widell
PTAL
5 years, 9 months ago (2015-03-05 10:18:07 UTC) #2
philipj_slow
Nice cleanup! The bots still look a little sad, but LGTM if that's just flakiness ...
5 years, 9 months ago (2015-03-05 13:21:00 UTC) #3
Jens Widell
On 2015/03/05 13:21:00, philipj_UTC7 wrote: > Nice cleanup! The bots still look a little sad, ...
5 years, 9 months ago (2015-03-05 13:25:10 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/974823002/40001
5 years, 9 months ago (2015-03-05 14:16:57 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=191363
5 years, 9 months ago (2015-03-05 14:19:55 UTC) #7
Dirk Pranke
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/983923002/ by dpranke@chromium.org. ...
5 years, 9 months ago (2015-03-05 23:34:58 UTC) #8
Jens Widell
I've updated the patch to reintroduce the checks in the implementation (only now throwing TypeError ...
5 years, 9 months ago (2015-03-06 09:53:25 UTC) #9
philipj_slow
Hmm, I think I would still be confused by this state of things when I ...
5 years, 9 months ago (2015-03-06 11:24:03 UTC) #10
Jens Widell
On 2015/03/06 11:24:03, philipj_UTC7 wrote: > Hmm, I think I would still be confused by ...
5 years, 9 months ago (2015-03-06 11:35:47 UTC) #11
philipj_slow
Hmm, so in the interest of making progress [TypeChecking=Interface] PS5 LGTM, but if you don't ...
5 years, 9 months ago (2015-03-06 11:56:25 UTC) #12
Jens Widell
On 2015/03/06 11:56:25, philipj_UTC7 wrote: > Hmm, so in the interest of making progress [TypeChecking=Interface] ...
5 years, 9 months ago (2015-03-06 12:49:51 UTC) #13
philipj_slow
On 2015/03/06 12:49:51, Jens Widell wrote: > On 2015/03/06 11:56:25, philipj_UTC7 wrote: > > Hmm, ...
5 years, 9 months ago (2015-03-06 15:34:59 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/974823002/100001
5 years, 9 months ago (2015-03-06 15:44:46 UTC) #16
commit-bot: I haz the power
5 years, 9 months ago (2015-03-06 15:47:46 UTC) #17
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191442

Powered by Google App Engine
This is Rietveld 408576698