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

Issue 2709443002: Selection API: addRange() should be ignored if there is an existing Range. (Closed)

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

Description

Selection API: addRange() should be ignored if there is an existing Range. Blink intent: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/X48eOuLmXOE This CL increases the number of FAIL tests in external/wpt/selection/ by 336. It's expected, and we'll update the specification and the tests later. * editing/selection/addRange.html and addRange-merging.html: They are removed because they are tests for the old behavior. BUG=353069 Review-Url: https://codereview.chromium.org/2709443002 Cr-Commit-Position: refs/heads/master@{#451581} Committed: https://chromium.googlesource.com/chromium/src/+/552ceb6deed19e86f89eb32b8fb3923217cefd7e

Patch Set 1 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1513 lines, -4470 lines) Patch
M third_party/WebKit/LayoutTests/editing/editability/empty-document-stylewithcss-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/editing/selection/addRange.html View 1 chunk +0 lines, -36 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/addRange-failures-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/editing/selection/addRange-merging.html View 1 chunk +0 lines, -224 lines 0 comments Download
D third_party/WebKit/LayoutTests/editing/selection/addRange-merging-expected.txt View 1 chunk +0 lines, -270 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/text-iterator/findString-start-search-after-selection-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-00-expected.txt View 69 chunks +214 lines, -546 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-04-expected.txt View 69 chunks +214 lines, -546 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-12-expected.txt View 35 chunks +108 lines, -274 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-16-expected.txt View 52 chunks +161 lines, -410 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-20-expected.txt View 35 chunks +108 lines, -274 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-24-expected.txt View 35 chunks +108 lines, -274 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-28-expected.txt View 69 chunks +214 lines, -546 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-32-expected.txt View 52 chunks +161 lines, -410 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/addRange-36-expected.txt View 69 chunks +214 lines, -546 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/first-letter-rtc-crash-expected.txt View 1 chunk +2 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/invalidation/selection-pseudo-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fullscreen/full-screen-contentEditable-crash-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/android/compositing/overflow/do-not-repaint-if-scrolling-composited-layers-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/compositing/overflow/do-not-repaint-if-scrolling-composited-layers-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/platform/linux/editing/selection/addRange-expected.png View Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/linux/editing/selection/addRange-expected.txt View 1 chunk +0 lines, -18 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.10/compositing/overflow/do-not-repaint-if-scrolling-composited-layers-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.9/compositing/overflow/do-not-repaint-if-scrolling-composited-layers-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-retina/compositing/overflow/do-not-repaint-if-scrolling-composited-layers-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/compositing/overflow/do-not-repaint-if-scrolling-composited-layers-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac/editing/selection/addRange-expected.png View Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac/editing/selection/addRange-expected.txt View 1 chunk +0 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/compositing/overflow/do-not-repaint-if-scrolling-composited-layers-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/editing/selection/addRange-expected.png View Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/editing/selection/addRange-expected.txt View 1 chunk +0 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win7/compositing/overflow/do-not-repaint-if-scrolling-composited-layers-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/virtual/prefer_compositing_to_lcd_text/compositing/overflow/do-not-repaint-if-scrolling-composited-layers-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/DOMSelection.cpp View 3 chunks +3 lines, -30 lines 2 comments Download
M third_party/WebKit/Source/core/frame/Deprecation.cpp View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (19 generated)
tkent
yoichio@, yosin@, would you review this please?
3 years, 10 months ago (2017-02-20 07:16:03 UTC) #15
yosin_UTC9
lgtm Thanks for resolving Web developer's pain and providing predictable behavior!
3 years, 10 months ago (2017-02-20 07:33:41 UTC) #16
yoichio
https://codereview.chromium.org/2709443002/diff/10001/third_party/WebKit/Source/core/editing/DOMSelection.cpp File third_party/WebKit/Source/core/editing/DOMSelection.cpp (right): https://codereview.chromium.org/2709443002/diff/10001/third_party/WebKit/Source/core/editing/DOMSelection.cpp#newcode612 third_party/WebKit/Source/core/editing/DOMSelection.cpp:612: newRange->startContainer()->treeScope()) { Why do you leave these two early ...
3 years, 10 months ago (2017-02-20 07:42:20 UTC) #17
tkent
https://codereview.chromium.org/2709443002/diff/10001/third_party/WebKit/Source/core/editing/DOMSelection.cpp File third_party/WebKit/Source/core/editing/DOMSelection.cpp (right): https://codereview.chromium.org/2709443002/diff/10001/third_party/WebKit/Source/core/editing/DOMSelection.cpp#newcode612 third_party/WebKit/Source/core/editing/DOMSelection.cpp:612: newRange->startContainer()->treeScope()) { On 2017/02/20 at 07:42:19, yoichio wrote: > ...
3 years, 10 months ago (2017-02-20 07:53:25 UTC) #18
yoichio
lgtm
3 years, 10 months ago (2017-02-20 08:04:32 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/2709443002/10001
3 years, 10 months ago (2017-02-20 08:44:43 UTC) #23
commit-bot: I haz the power
3 years, 10 months ago (2017-02-20 08:49:47 UTC) #26
Message was sent while issue was closed.
Committed patchset #1 (id:10001) as
https://chromium.googlesource.com/chromium/src/+/552ceb6deed19e86f89eb32b8fb3...

Powered by Google App Engine
This is Rietveld 408576698