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

Issue 2686663004: Selection API: Selection.extend() should throw if rangeCount is 0. (Closed)

Created:
3 years, 10 months ago by tkent
Modified:
3 years, 10 months ago
Reviewers:
yoichio, yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Selection API: Selection.extend() should throw if rangeCount is 0. Fixes 88 tests in external/wpt/selection/extend-00.html. The new behavior matches to the standard and Firefox. * assert_selection.js: Prevent load() from throwing an InvalidStateError while running editing/deleting/typing_one_character_delete_crash.html BUG=690240 Review-Url: https://codereview.chromium.org/2686663004 Cr-Commit-Position: refs/heads/master@{#449213} Committed: https://chromium.googlesource.com/chromium/src/+/de2a69791692ee94fa066dec6bcaf2f2075072c1

Patch Set 1 : . #

Total comments: 5

Patch Set 2 : focus() -> collapse() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1539 lines, -1707 lines) Patch
M third_party/WebKit/LayoutTests/editing/assert_selection.js View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/execCommand/transpose-backslash-with-euc.html View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/DOMSelection-DocumentType-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/DOMSelection-crossing-document-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-crossing-document.js View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/extend-00-expected.txt View 1 3 chunks +440 lines, -616 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/extend-20-expected.txt View 1 3 chunks +264 lines, -264 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/extend-40-expected.txt View 1 6 chunks +792 lines, -792 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/interfaces-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/removeAllRanges-expected.txt View 1 4 chunks +30 lines, -30 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/text/selection-exceptions.html View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/DOMSelection.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 25 (18 generated)
tkent
yosin@, yoichio@, would you review this please?
3 years, 10 months ago (2017-02-09 01:21:40 UTC) #12
yosin_UTC9
https://codereview.chromium.org/2686663004/diff/20001/third_party/WebKit/LayoutTests/editing/execCommand/transpose-backslash-with-euc.html File third_party/WebKit/LayoutTests/editing/execCommand/transpose-backslash-with-euc.html (right): https://codereview.chromium.org/2686663004/diff/20001/third_party/WebKit/LayoutTests/editing/execCommand/transpose-backslash-with-euc.html#newcode14 third_party/WebKit/LayoutTests/editing/execCommand/transpose-backslash-with-euc.html:14: backslashDivElement.focus(); I think it is better to write: |getSelection().collapse(backslashDivElement, ...
3 years, 10 months ago (2017-02-09 01:33:18 UTC) #14
tkent
https://codereview.chromium.org/2686663004/diff/20001/third_party/WebKit/LayoutTests/editing/execCommand/transpose-backslash-with-euc.html File third_party/WebKit/LayoutTests/editing/execCommand/transpose-backslash-with-euc.html (right): https://codereview.chromium.org/2686663004/diff/20001/third_party/WebKit/LayoutTests/editing/execCommand/transpose-backslash-with-euc.html#newcode14 third_party/WebKit/LayoutTests/editing/execCommand/transpose-backslash-with-euc.html:14: backslashDivElement.focus(); On 2017/02/09 at 01:33:18, yosin_BlinkOn_slow wrote: > I ...
3 years, 10 months ago (2017-02-09 02:06:17 UTC) #17
yosin_UTC9
https://codereview.chromium.org/2686663004/diff/20001/third_party/WebKit/LayoutTests/editing/execCommand/transpose-backslash-with-euc.html File third_party/WebKit/LayoutTests/editing/execCommand/transpose-backslash-with-euc.html (right): https://codereview.chromium.org/2686663004/diff/20001/third_party/WebKit/LayoutTests/editing/execCommand/transpose-backslash-with-euc.html#newcode14 third_party/WebKit/LayoutTests/editing/execCommand/transpose-backslash-with-euc.html:14: backslashDivElement.focus(); On 2017/02/09 at 01:33:18, yosin_BlinkOn_slow wrote: > I ...
3 years, 10 months ago (2017-02-09 02:26:30 UTC) #18
yosin_UTC9
lgtm
3 years, 10 months ago (2017-02-09 03:41:19 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2686663004/30001
3 years, 10 months ago (2017-02-09 03:41:37 UTC) #22
commit-bot: I haz the power
3 years, 10 months ago (2017-02-09 05:57:07 UTC) #25
Message was sent while issue was closed.
Committed patchset #2 (id:30001) as
https://chromium.googlesource.com/chromium/src/+/de2a69791692ee94fa066dec6bca...

Powered by Google App Engine
This is Rietveld 408576698