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

Issue 405083003: Range.compareBoundaryPoints should throw a NotSupportedError when how has not expected value (Closed)

Created:
6 years, 5 months ago by kangil_
Modified:
6 years, 5 months ago
CC:
blink-reviews, arv+blink, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, Inactive, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Range.compareBoundaryPoints should throw a NotSupportedError when how has not expected value SPEC: http://dom.spec.whatwg.org/#dom-range-compareboundarypoints This CL also added interface type checking so appropriate TypeError will be thrown. In addition, 714 failed cases will be passed in http://w3c-test.org/dom/ranges/Range-compareBoundaryPoints.html TEST=LayoutTests/fast/dom/Range/compareBoundaryPoints-error.html Behavior in other browsers. *)FF: PASS *)IE: FAIL Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178610

Patch Set 1 #

Total comments: 2

Patch Set 2 : Take review comment into consideration #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -6 lines) Patch
A LayoutTests/fast/dom/Range/compareBoundaryPoints-error.html View 1 chunk +16 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Range/compareBoundaryPoints-error-expected.txt View 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/dom/Range.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Range.cpp View 1 2 chunks +4 lines, -4 lines 3 comments Download
M Source/core/dom/Range.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
kangil_
PTAL
6 years, 5 months ago (2014-07-21 09:06:51 UTC) #1
haraken
LGTM This change just changes exception types and will have little compatibility issues. https://codereview.chromium.org/405083003/diff/1/Source/core/dom/Range.cpp File ...
6 years, 5 months ago (2014-07-21 14:09:38 UTC) #2
kangil_
Thx!! https://codereview.chromium.org/405083003/diff/1/Source/core/dom/Range.cpp File Source/core/dom/Range.cpp (right): https://codereview.chromium.org/405083003/diff/1/Source/core/dom/Range.cpp#newcode326 Source/core/dom/Range.cpp:326: if (how < START_TO_START || how > END_TO_START) ...
6 years, 5 months ago (2014-07-22 00:27:01 UTC) #3
kangil_
The CQ bit was checked by kangil.han@samsung.com
6 years, 5 months ago (2014-07-22 00:27:09 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kangil.han@samsung.com/405083003/20001
6 years, 5 months ago (2014-07-22 00:28:20 UTC) #5
tkent
+editing people
6 years, 5 months ago (2014-07-22 01:40:04 UTC) #6
commit-bot: I haz the power
Change committed as 178610
6 years, 5 months ago (2014-07-22 01:50:16 UTC) #7
Yuta Kitamura
The change itself LGTM https://codereview.chromium.org/405083003/diff/20001/Source/core/dom/Range.cpp File Source/core/dom/Range.cpp (right): https://codereview.chromium.org/405083003/diff/20001/Source/core/dom/Range.cpp#newcode324 Source/core/dom/Range.cpp:324: short Range::compareBoundaryPoints(CompareHow how, const PassRefPtrWillBeRawPtr<Range> ...
6 years, 5 months ago (2014-07-22 06:03:39 UTC) #8
kangil_
https://codereview.chromium.org/405083003/diff/20001/Source/core/dom/Range.cpp File Source/core/dom/Range.cpp (right): https://codereview.chromium.org/405083003/diff/20001/Source/core/dom/Range.cpp#newcode324 Source/core/dom/Range.cpp:324: short Range::compareBoundaryPoints(CompareHow how, const PassRefPtrWillBeRawPtr<Range> sourceRange, ExceptionState& exceptionState) const ...
6 years, 5 months ago (2014-07-22 08:41:49 UTC) #9
Yuta Kitamura
https://codereview.chromium.org/405083003/diff/20001/Source/core/dom/Range.cpp File Source/core/dom/Range.cpp (right): https://codereview.chromium.org/405083003/diff/20001/Source/core/dom/Range.cpp#newcode324 Source/core/dom/Range.cpp:324: short Range::compareBoundaryPoints(CompareHow how, const PassRefPtrWillBeRawPtr<Range> sourceRange, ExceptionState& exceptionState) const ...
6 years, 5 months ago (2014-07-22 09:22:43 UTC) #10
kangil_
6 years, 5 months ago (2014-07-23 02:22:38 UTC) #11
Message was sent while issue was closed.
Done at https://codereview.chromium.org/409283003/ :)

Powered by Google App Engine
This is Rietveld 408576698