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

Issue 2693813002: Selection API: Some functions should throw InvalidNodeTypeError and IndexSizeError. (Closed)

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

Description

Selection API: Some functions should throw InvalidNodeTypeError and IndexSizeError. * setBaseAndExtent() should throw InvalidNodeTypeError for DOCTYPEs. * setBaseAndExtent() should throw IndexSizeError for too large offsets. * extend() should InvalidNodeTyepError for DOCTYPEs. * collapse() should call checkNodeWOffset() earlier than isValidForPosition() https://www.w3.org/TR/selection-api/#dom-selection-collapse checkNodeWOffset() is for step 2, isValidForPosition() is for step 3. New behavior matches to Edge, Firefox, and Selection API standard. This CL fixes 589 sub-tests in external/wpt/selection/. * fast/forms/file/file-crash-by-runin-parent.html This CL removes the test because the test is obsolete. We removed display:run-in several years ago. BUG=691422 Review-Url: https://codereview.chromium.org/2693813002 Cr-Commit-Position: refs/heads/master@{#450006} Committed: https://chromium.googlesource.com/chromium/src/+/66f70447e561ce2d850be2e2ef4d1a1be4364ac7

Patch Set 1 : . #

Patch Set 2 : adjust 2 more tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+654 lines, -1846 lines) Patch
M third_party/WebKit/LayoutTests/editing/execCommand/apply-inline-style-to-element-with-no-renderer-crash.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/execCommand/outdent-selection.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/inserting/replace-at-visible-boundary.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/pasteboard/cleanup-on-move.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/pasteboard/drag-list-item.html View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/pasteboard/drag-selected-image-to-contenteditable.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/pasteboard/paste-visible-script.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/pasteboard/script-tests/dataTransfer-setData-getData.js View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/pasteboard/testcase-9507.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/DOMSelection-DocumentType-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/extend-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-ltr.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-ltr-2.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-rtl.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-rtl-2.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/selection-invalid-offset.html View 2 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/selection-invalid-offset-expected.txt View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/skip-over-contenteditable.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/skip-over-uneditable-in-contenteditable.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/style/apply-style-crash2.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/collapse-00-expected.txt View 90 chunks +150 lines, -450 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/collapse-30-expected.txt View 87 chunks +145 lines, -435 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/extend-00-expected.txt View 20 chunks +56 lines, -168 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/extend-20-expected.txt View 25 chunks +56 lines, -168 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/extend-40-expected.txt View 1 chunk +4 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/selectAllChildren-expected.txt View 59 chunks +177 lines, -531 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/selection/setBaseAndExtent-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/block/float/float-list-changed-before-layout-crash.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/dynamic/checkbox-selection-crash.html View 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/fast/forms/file/file-crash-by-runin-parent.html View 1 chunk +0 lines, -24 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/forms/file/file-crash-by-runin-parent-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/text/selection-exceptions.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/text/selection-exceptions-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/resources/foreign-domain-iframe-for-selection-test.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-viewport-selection.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/selected-replaced.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/paint/selection/selection-drag-image-in-iframe.html View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/DOMSelection.cpp View 3 chunks +14 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 30 (25 generated)
tkent
yoichio@, yosin@, would you review this please?
3 years, 10 months ago (2017-02-13 09:13:42 UTC) #15
yosin_UTC9
lgtm What a wonderful patch is! Thanks for working this! (^_^)b
3 years, 10 months ago (2017-02-13 09:55:24 UTC) #16
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/2693813002/40001
3 years, 10 months ago (2017-02-13 09:55:38 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/2693813002/60001
3 years, 10 months ago (2017-02-13 17:59:39 UTC) #27
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 18:06:37 UTC) #30
Message was sent while issue was closed.
Committed patchset #2 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/66f70447e561ce2d850be2e2ef4d...

Powered by Google App Engine
This is Rietveld 408576698