NEW 108987
"Select all" doesn't select anything when a contenteditable="false" element is present
https://bugs.webkit.org/show_bug.cgi?id=108987
Summary "Select all" doesn't select anything when a contenteditable="false" element i...
Mihai Parparita
Reported 2013-02-05 15:49:07 PST
Test case at http://persistent.info/webkit/test-cases/contenteditable-select-all-bug.html Doing a "select all" operation (either from the keyboard or the edit menu) while the cursor is in the "content content..." paragraph does not work as expected in the first contenteditable area. Instead, the cursor is moved to the end of the area. This appears to be triggered by the first element in the in the contenteditable="true" container being a contenteditable="false" div (the red rectangle). If that node is editable (the green rectangle version), then everything works as expected. I expect this is a bug in highestEditableRoot in htmlediting.cpp, or somewhere around there. I can reproduce this in Safari 6.0.2 and Chrome 26.0.1386.0.
Attachments
Patch (5.59 KB, patch)
2013-09-16 05:31 PDT, Santosh Mahto
no flags
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2 (592.66 KB, application/zip)
2013-09-16 06:13 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion (609.58 KB, application/zip)
2013-09-16 06:39 PDT, Build Bot
no flags
JustTestingPatch (5.29 KB, patch)
2013-09-23 05:53 PDT, Santosh Mahto
no flags
Archive of layout-test-results from webkit-ews-04 for mac-mountainlion (508.47 KB, application/zip)
2013-09-23 06:57 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2 (491.38 KB, application/zip)
2013-09-23 07:41 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-03 for mac-mountainlion (526.26 KB, application/zip)
2013-09-23 08:01 PDT, Build Bot
no flags
Under Construction (5.39 KB, patch)
2013-09-24 03:06 PDT, Santosh Mahto
no flags
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2 (474.74 KB, application/zip)
2013-09-24 03:53 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-04 for mac-mountainlion (487.24 KB, application/zip)
2013-09-24 04:11 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-01 for mac-mountainlion (490.26 KB, application/zip)
2013-09-24 05:16 PDT, Build Bot
no flags
Patch (6.36 KB, patch)
2013-09-24 06:42 PDT, Santosh Mahto
no flags
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2 (750.79 KB, application/zip)
2013-09-24 07:29 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion (772.51 KB, application/zip)
2013-09-24 07:53 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion (762.73 KB, application/zip)
2013-09-24 08:47 PDT, Build Bot
no flags
UnderConstruction (1.77 KB, patch)
2013-09-25 05:11 PDT, Santosh Mahto
no flags
Patch (1.88 KB, patch)
2013-09-25 05:40 PDT, Santosh Mahto
no flags
Patch (2.06 KB, patch)
2013-09-25 06:31 PDT, Santosh Mahto
no flags
Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2 (277.32 KB, application/zip)
2013-09-25 06:49 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-06 for mac-mountainlion (275.03 KB, application/zip)
2013-09-25 07:27 PDT, Build Bot
no flags
Patch (1.71 KB, patch)
2013-09-25 10:54 PDT, Santosh Mahto
no flags
Patch (1.74 KB, patch)
2013-09-25 11:19 PDT, Santosh Mahto
no flags
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2 (486.07 KB, application/zip)
2013-09-25 12:07 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion (499.11 KB, application/zip)
2013-09-25 13:28 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-04 for mac-mountainlion (502.49 KB, application/zip)
2013-09-25 14:27 PDT, Build Bot
no flags
Patch (1.84 KB, patch)
2013-09-25 20:45 PDT, Santosh Mahto
no flags
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2 (652.65 KB, application/zip)
2013-09-25 21:51 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion (668.00 KB, application/zip)
2013-09-25 22:11 PDT, Build Bot
no flags
Patch (9.84 KB, patch)
2013-09-26 02:15 PDT, Santosh Mahto
no flags
Archive of layout-test-results from webkit-ews-13 for mac-mountainlion-wk2 (544.55 KB, application/zip)
2013-09-26 03:01 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-04 for mac-mountainlion (561.27 KB, application/zip)
2013-09-26 03:23 PDT, Build Bot
no flags
Patch (6.28 KB, patch)
2013-09-28 04:13 PDT, Santosh Mahto
beidson: review-
Santosh Mahto
Comment 1 2013-09-16 05:31:58 PDT
Build Bot
Comment 2 2013-09-16 06:13:17 PDT
Comment on attachment 211767 [details] Patch Attachment 211767 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/1810253 New failing tests: editing/execCommand/format-block-contenteditable-false.html editing/selection/extend-forward-by-word-over-non-editable.html editing/selection/5825350-1.html editing/selection/user-select-all-selection.html editing/selection/select-all-with-div-noneditable.html editing/selection/skip-non-editable-2.html editing/selection/mixed-editability-9.html editing/selection/5825350-2.html editing/selection/editable-non-editable-crash.html editing/deleting/delete-uneditable-style.html editing/selection/5099303.html editing/selection/4895428-4.html editing/selection/mixed-editability-2.html editing/selection/skip-non-editable-1.html
Build Bot
Comment 3 2013-09-16 06:13:19 PDT
Created attachment 211772 [details] Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-14 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Build Bot
Comment 4 2013-09-16 06:39:13 PDT
Comment on attachment 211767 [details] Patch Attachment 211767 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/1799095 New failing tests: editing/execCommand/format-block-contenteditable-false.html editing/selection/extend-forward-by-word-over-non-editable.html editing/selection/5825350-1.html editing/selection/user-select-all-selection.html editing/selection/select-all-with-div-noneditable.html editing/selection/skip-non-editable-2.html editing/selection/mixed-editability-9.html editing/selection/5825350-2.html editing/selection/editable-non-editable-crash.html editing/deleting/delete-uneditable-style.html editing/selection/5099303.html editing/selection/4895428-4.html editing/selection/mixed-editability-2.html editing/selection/skip-non-editable-1.html
Build Bot
Comment 5 2013-09-16 06:39:15 PDT
Created attachment 211775 [details] Archive of layout-test-results from webkit-ews-05 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-05 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Ryosuke Niwa
Comment 6 2013-09-16 10:10:18 PDT
It seems like tests are failing.
Santosh Mahto
Comment 7 2013-09-23 05:53:25 PDT
Created attachment 212342 [details] JustTestingPatch
Build Bot
Comment 8 2013-09-23 06:57:22 PDT
Comment on attachment 212342 [details] JustTestingPatch Attachment 212342 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/1892421 New failing tests: editing/selection/select-all-with-div-noneditable.html platform/mac/editing/input/range-for-empty-document.html platform/mac/accessibility/document-attributes.html fast/block/float/relative-painted-twice.html
Build Bot
Comment 9 2013-09-23 06:57:24 PDT
Created attachment 212345 [details] Archive of layout-test-results from webkit-ews-04 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-04 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Build Bot
Comment 10 2013-09-23 07:41:28 PDT
Comment on attachment 212342 [details] JustTestingPatch Attachment 212342 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/2042054 New failing tests: editing/selection/select-all-with-div-noneditable.html platform/mac/editing/input/range-for-empty-document.html platform/mac/accessibility/document-attributes.html fast/block/float/relative-painted-twice.html
Build Bot
Comment 11 2013-09-23 07:41:30 PDT
Created attachment 212347 [details] Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-16 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Build Bot
Comment 12 2013-09-23 08:01:06 PDT
Comment on attachment 212342 [details] JustTestingPatch Attachment 212342 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/1816306 New failing tests: editing/selection/select-all-with-div-noneditable.html platform/mac/editing/input/range-for-empty-document.html platform/mac/accessibility/document-attributes.html fast/block/float/relative-painted-twice.html
Build Bot
Comment 13 2013-09-23 08:01:09 PDT
Created attachment 212351 [details] Archive of layout-test-results from webkit-ews-03 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-03 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Santosh Mahto
Comment 14 2013-09-24 03:06:55 PDT
Created attachment 212444 [details] Under Construction
Build Bot
Comment 15 2013-09-24 03:53:38 PDT
Comment on attachment 212444 [details] Under Construction Attachment 212444 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/1960207 New failing tests: editing/selection/select-all-with-div-noneditable.html fast/block/float/relative-painted-twice.html
Build Bot
Comment 16 2013-09-24 03:53:40 PDT
Created attachment 212449 [details] Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-09 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Build Bot
Comment 17 2013-09-24 04:11:35 PDT
Comment on attachment 212444 [details] Under Construction Attachment 212444 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/2075202 New failing tests: editing/selection/select-all-with-div-noneditable.html fast/block/float/relative-painted-twice.html
Build Bot
Comment 18 2013-09-24 04:11:38 PDT
Created attachment 212451 [details] Archive of layout-test-results from webkit-ews-04 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-04 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Build Bot
Comment 19 2013-09-24 05:16:04 PDT
Comment on attachment 212444 [details] Under Construction Attachment 212444 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/1806336 New failing tests: editing/selection/select-all-with-div-noneditable.html fast/block/float/relative-painted-twice.html
Build Bot
Comment 20 2013-09-24 05:16:06 PDT
Created attachment 212452 [details] Archive of layout-test-results from webkit-ews-01 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-01 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Santosh Mahto
Comment 21 2013-09-24 06:42:08 PDT
Build Bot
Comment 22 2013-09-24 07:29:23 PDT
Comment on attachment 212463 [details] Patch Attachment 212463 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/2062292 New failing tests: fast/html/details-remove-summary-5-and-click.html fast/multicol/hit-test-gap-between-pages-flipped.html fast/html/details-add-summary-5-and-click.html fast/html/details-add-summary-6-and-click.html fast/writing-mode/flipped-blocks-hit-test-overflow-scroll.html fast/multicol/hit-test-block-axis-flipped.html fast/html/details-add-summary-3-and-click.html fast/html/details-add-summary-10-and-click.html fast/html/details-remove-summary-3-and-click.html editing/selection/select-all-with-div-noneditable.html fast/html/details-add-summary-8-and-click.html fast/html/details-remove-summary-2-and-click.html fast/html/details-remove-summary-4-and-click.html fast/html/details-add-summary-1-and-click.html fast/html/details-add-summary-2-and-click.html fast/html/details-remove-summary-6-and-click.html fast/html/details-add-summary-7-and-click.html fast/html/details-add-summary-9-and-click.html fast/multicol/hit-test-gap-between-pages.html fast/html/details-remove-summary-1-and-click.html fast/writing-mode/flipped-blocks-hit-test-box-edges.html fast/html/details-add-summary-4-and-click.html fast/block/float/relative-painted-twice.html fast/writing-mode/positionForPoint.html
Build Bot
Comment 23 2013-09-24 07:29:25 PDT
Created attachment 212465 [details] Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-11 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Build Bot
Comment 24 2013-09-24 07:53:26 PDT
Comment on attachment 212463 [details] Patch Attachment 212463 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/1806372 New failing tests: fast/html/details-remove-summary-5-and-click.html fast/multicol/hit-test-gap-between-pages-flipped.html fast/html/details-add-summary-5-and-click.html fast/html/details-add-summary-6-and-click.html fast/writing-mode/flipped-blocks-hit-test-overflow-scroll.html fast/multicol/hit-test-block-axis-flipped.html fast/html/details-add-summary-3-and-click.html fast/html/details-add-summary-10-and-click.html fast/html/details-remove-summary-3-and-click.html editing/selection/select-all-with-div-noneditable.html fast/html/details-add-summary-8-and-click.html fast/html/details-remove-summary-2-and-click.html fast/html/details-remove-summary-4-and-click.html fast/html/details-add-summary-1-and-click.html fast/html/details-add-summary-2-and-click.html fast/html/details-remove-summary-6-and-click.html fast/html/details-add-summary-7-and-click.html fast/html/details-add-summary-9-and-click.html fast/multicol/hit-test-gap-between-pages.html fast/html/details-remove-summary-1-and-click.html fast/writing-mode/flipped-blocks-hit-test-box-edges.html fast/html/details-add-summary-4-and-click.html fast/block/float/relative-painted-twice.html fast/writing-mode/positionForPoint.html
Build Bot
Comment 25 2013-09-24 07:53:28 PDT
Created attachment 212467 [details] Archive of layout-test-results from webkit-ews-07 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-07 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Build Bot
Comment 26 2013-09-24 08:47:22 PDT
Comment on attachment 212463 [details] Patch Attachment 212463 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/2004633 New failing tests: fast/html/details-remove-summary-5-and-click.html fast/multicol/hit-test-gap-between-pages-flipped.html fast/html/details-add-summary-5-and-click.html fast/html/details-add-summary-6-and-click.html fast/writing-mode/flipped-blocks-hit-test-overflow-scroll.html fast/multicol/hit-test-block-axis-flipped.html fast/html/details-add-summary-3-and-click.html fast/html/details-add-summary-10-and-click.html fast/html/details-remove-summary-3-and-click.html editing/selection/select-all-with-div-noneditable.html fast/html/details-add-summary-8-and-click.html fast/html/details-remove-summary-2-and-click.html fast/html/details-remove-summary-4-and-click.html fast/html/details-add-summary-1-and-click.html fast/html/details-add-summary-2-and-click.html fast/html/details-remove-summary-6-and-click.html fast/html/details-add-summary-7-and-click.html fast/html/details-add-summary-9-and-click.html fast/multicol/hit-test-gap-between-pages.html fast/html/details-remove-summary-1-and-click.html fast/writing-mode/flipped-blocks-hit-test-box-edges.html fast/html/details-add-summary-4-and-click.html fast/block/float/relative-painted-twice.html fast/writing-mode/positionForPoint.html
Build Bot
Comment 27 2013-09-24 08:47:25 PDT
Created attachment 212472 [details] Archive of layout-test-results from webkit-ews-08 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-08 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Santosh Mahto
Comment 28 2013-09-25 05:11:03 PDT
Created attachment 212559 [details] UnderConstruction
Santosh Mahto
Comment 29 2013-09-25 05:40:36 PDT
Santosh Mahto
Comment 30 2013-09-25 06:31:34 PDT
Build Bot
Comment 31 2013-09-25 06:49:38 PDT
Comment on attachment 212567 [details] Patch Attachment 212567 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/2281012 New failing tests: editing/pasteboard/copy-null-characters.html accessibility/image-link.html editing/input/paste-text-ending-with-interchange-newline.html accessibility/table-one-cell.html compositing/reflections/remove-reflection.html accessibility/table-cells.html accessibility/image-map2.html accessibility/table-cell-spans.html editing/pasteboard/copy-paste-float.html accessibility/plugin.html editing/pasteboard/5665299.html editing/inserting/insert-images-in-pre-x-crash.html editing/selection/dump-as-markup.html accessibility/table-sections.html accessibility/table-detection.html editing/execCommand/crash-extend-selection-forward.html editing/selection/5354455-2.html accessibility/internal-link-anchors2.html accessibility/lists.html accessibility/table-attributes.html fast/dom/horizontal-scrollbar-in-rtl.html accessibility/transformed-element.html editing/deleting/delete-blockquote-large-offsets.html accessibility/table-with-aria-role.html editing/selection/5333725.html editing/pasteboard/copy-inside-h1-preserves-h1.html fast/backgrounds/selection-background-color.html editing/selection/contains-node-crash.html accessibility/table-with-rules.html fast/block/float/relative-painted-twice.html
Build Bot
Comment 32 2013-09-25 06:49:41 PDT
Created attachment 212569 [details] Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-15 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Build Bot
Comment 33 2013-09-25 07:27:06 PDT
Comment on attachment 212567 [details] Patch Attachment 212567 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/2260044 New failing tests: editing/pasteboard/copy-null-characters.html accessibility/image-link.html editing/input/paste-text-ending-with-interchange-newline.html accessibility/table-one-cell.html compositing/reflections/remove-reflection.html accessibility/table-cells.html accessibility/image-map2.html accessibility/table-cell-spans.html editing/pasteboard/copy-paste-float.html accessibility/plugin.html editing/pasteboard/5665299.html editing/inserting/insert-images-in-pre-x-crash.html editing/selection/dump-as-markup.html accessibility/table-sections.html accessibility/table-detection.html editing/execCommand/crash-extend-selection-forward.html editing/selection/5354455-2.html accessibility/internal-link-anchors2.html accessibility/lists.html accessibility/table-attributes.html editing/pasteboard/paste-blockquote-before-blockquote.html accessibility/transformed-element.html editing/deleting/delete-blockquote-large-offsets.html accessibility/table-with-aria-role.html editing/selection/5333725.html editing/pasteboard/copy-inside-h1-preserves-h1.html fast/backgrounds/selection-background-color.html editing/selection/contains-node-crash.html accessibility/table-with-rules.html fast/block/float/relative-painted-twice.html
Build Bot
Comment 34 2013-09-25 07:27:09 PDT
Created attachment 212575 [details] Archive of layout-test-results from webkit-ews-06 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-06 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Santosh Mahto
Comment 35 2013-09-25 10:54:54 PDT
Santosh Mahto
Comment 36 2013-09-25 11:19:05 PDT
Build Bot
Comment 37 2013-09-25 12:07:02 PDT
Comment on attachment 212607 [details] Patch Attachment 212607 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/2162234 New failing tests: editing/execCommand/remove-list-1.html fast/css/image-set-value-not-removed-crash.html editing/inserting/insert-div-021.html fast/block/float/relative-painted-twice.html
Build Bot
Comment 38 2013-09-25 12:07:06 PDT
Created attachment 212614 [details] Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-09 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Build Bot
Comment 39 2013-09-25 13:28:31 PDT
Comment on attachment 212607 [details] Patch Attachment 212607 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/2189061 New failing tests: editing/execCommand/remove-list-1.html fast/css/image-set-value-not-removed-crash.html editing/inserting/insert-div-021.html fast/block/float/relative-painted-twice.html
Build Bot
Comment 40 2013-09-25 13:28:34 PDT
Created attachment 212619 [details] Archive of layout-test-results from webkit-ews-05 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-05 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Build Bot
Comment 41 2013-09-25 14:27:06 PDT
Comment on attachment 212607 [details] Patch Attachment 212607 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/2243014 New failing tests: editing/execCommand/remove-list-1.html fast/css/image-set-value-not-removed-crash.html editing/inserting/insert-div-021.html fast/block/float/relative-painted-twice.html
Build Bot
Comment 42 2013-09-25 14:27:10 PDT
Created attachment 212627 [details] Archive of layout-test-results from webkit-ews-04 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-04 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Santosh Mahto
Comment 43 2013-09-25 20:45:17 PDT
Build Bot
Comment 44 2013-09-25 21:51:38 PDT
Comment on attachment 212659 [details] Patch Attachment 212659 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/2188149 New failing tests: editing/execCommand/remove-list-1.html platform/mac/editing/input/range-for-empty-document.html platform/mac/accessibility/document-attributes.html editing/deleting/delete-3775172-fix.html editing/inserting/insert-div-021.html editing/pasteboard/paste-RTFD.html fast/css/image-set-value-not-removed-crash.html editing/execCommand/indent-block-in-list.html editing/execCommand/35791.html editing/execCommand/infinite-recursion-computeRectForRepaint.html editing/selection/editable-html-element.html fast/block/float/relative-painted-twice.html fast/dom/remove-body-during-body-replacement2.html
Build Bot
Comment 45 2013-09-25 21:51:41 PDT
Created attachment 212663 [details] Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-09 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Build Bot
Comment 46 2013-09-25 22:11:16 PDT
Comment on attachment 212659 [details] Patch Attachment 212659 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/2230151 New failing tests: editing/execCommand/remove-list-1.html platform/mac/editing/input/range-for-empty-document.html platform/mac/accessibility/document-attributes.html editing/deleting/delete-3775172-fix.html editing/inserting/insert-div-021.html editing/pasteboard/paste-RTFD.html fast/css/image-set-value-not-removed-crash.html editing/execCommand/indent-block-in-list.html editing/execCommand/35791.html editing/execCommand/infinite-recursion-computeRectForRepaint.html editing/selection/editable-html-element.html fast/block/float/relative-painted-twice.html fast/dom/remove-body-during-body-replacement2.html
Build Bot
Comment 47 2013-09-25 22:11:19 PDT
Created attachment 212664 [details] Archive of layout-test-results from webkit-ews-05 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-05 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Santosh Mahto
Comment 48 2013-09-26 02:15:27 PDT
Build Bot
Comment 49 2013-09-26 03:01:46 PDT
Comment on attachment 212679 [details] Patch Attachment 212679 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/2195267 New failing tests: editing/selection/select-all-with-div-noneditable.html fast/block/float/relative-painted-twice.html
Build Bot
Comment 50 2013-09-26 03:01:51 PDT
Created attachment 212683 [details] Archive of layout-test-results from webkit-ews-13 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-13 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Build Bot
Comment 51 2013-09-26 03:23:15 PDT
Comment on attachment 212679 [details] Patch Attachment 212679 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/2287088 New failing tests: editing/selection/select-all-with-div-noneditable.html fast/block/float/relative-painted-twice.html
Build Bot
Comment 52 2013-09-26 03:23:19 PDT
Created attachment 212686 [details] Archive of layout-test-results from webkit-ews-04 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-04 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Santosh Mahto
Comment 53 2013-09-26 04:37:54 PDT
The test fast/block/float/relative-painted-twice.html is faling. But I think we need to update the expected output of this test. --- /Volumes/Data/EWS/WebKit/WebKitBuild/Release/layout-test-results/fast/block/float/relative-painted-twice-expected.txt +++ /Volumes/Data/EWS/WebKit/WebKitBuild/Release/layout-test-results/fast/block/float/relative-painted-twice-actual.txt @@ -8,4 +8,3 @@ layer at (8,58) size 769x0 RenderBlock (relative positioned) {DIV} at (0,0) size 769x0 RenderBlock (floating) {DIV} at (0,0) size 100x100 [bgcolor=#0000007F] -caret: position 0 of child 1 {DIV} of child 1 {DIV} of child 1 {DIV} of body
Darin Adler
Comment 54 2013-09-26 09:32:31 PDT
Comment on attachment 212679 [details] Patch Can we do this as a reference test instead? The test is failing on the EWS bot, so something more has to be added to the patch before we can land it.
Santosh Mahto
Comment 55 2013-09-28 04:13:32 PDT
Santosh Mahto
Comment 56 2013-09-29 11:05:01 PDT
(In reply to comment #54) > (From update of attachment 212679 [details]) > Can we do this as a reference test instead? The test is failing on the EWS bot, so something more has to be added to the patch before we can land it. Thanks for review I have updated the patch.
Ryosuke Niwa
Comment 57 2013-09-30 20:30:15 PDT
Comment on attachment 212894 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=212894&action=review > Source/WebCore/ChangeLog:9 > + Test: editing/selection/select-all-with-div-noneditable.html > + This line should appear after the long description but before the list of files and function names. > Source/WebCore/ChangeLog:16 > + But editableRootPosition, highestRootEditablePosition and > + rootEditablePosition return 0 for nonediatble element due to which > + the check for position to be under same highestRootEditable element > + fails. This doesn't justify the change. Why should that matter at all? It appears to be that this is a bug in VisibleSelection, not PositionIterator.
Santosh Mahto
Comment 58 2013-09-30 21:34:34 PDT
> > > Source/WebCore/ChangeLog:9 > > + Test: editing/selection/select-all-with-div-noneditable.html > > + > > This line should appear after the long description but before the list of files and function names. Sorry I will update. > > > Source/WebCore/ChangeLog:16 > > + But editableRootPosition, highestRootEditablePosition and > > + rootEditablePosition return 0 for nonediatble element due to which > > + the check for position to be under same highestRootEditable element > > + fails. > > This doesn't justify the change. Why should that matter at all? It appears to be that this is a bug in VisibleSelection, not PositionIterator. Why you think that cause of issue is around VisibleSelection? What I found is: <div id= = "1" contenteditable = true> <div id = "2" contenteditable = false> </div> <p>This is candidate</p> </div> In above scenario the selectAll range startPosition anchornode is div(id = "2") and end position is <p>. since div(id="2") is disable the check that div and p are under same editableContent(div id ="1") fails setting startPosition to NULL (in Cannonical position) and if startposition is NULL we make it equal to end position. so final selection is caret selection. and the fix is in isCandidate() Basically I am ignoring position with empty noneditable position and blockheight to be a candidate. Overall it looks fine to me considering the tricky editing code. Please suggest if you have something in mind.
Santosh Mahto
Comment 59 2013-09-30 21:55:45 PDT
So its failing at calculating start VisiblePosition. > WebKit.dll!WebCore::VisiblePosition::canonicalPosition(const WebCore::Position & passedPosition={...}) Line 532 C++ WebKit.dll!WebCore::VisiblePosition::init(const WebCore::Position & position={...}, WebCore::EAffinity affinity=DOWNSTREAM) Line 58 + 0x10 bytes C++ WebKit.dll!WebCore::VisiblePosition::VisiblePosition(const WebCore::Position & pos={...}, WebCore::EAffinity affinity=DOWNSTREAM) Line 52 C++ WebKit.dll!WebCore::VisibleSelection::setBaseAndExtentToDeepEquivalents() Line 254 + 0x17 bytes C++ WebKit.dll!WebCore::VisibleSelection::validate(WebCore::TextGranularity granularity=CharacterGranularity) Line 417 C++ WebKit.dll!WebCore::VisibleSelection::VisibleSelection(const WebCore::Position & base={...}, const WebCore::Position & extent={...}, WebCore::EAffinity affinity=DOWNSTREAM, bool isDirectional=false) Line 68 C++ WebKit.dll!WebCore::VisibleSelection::selectionFromContentsOfNode(WebCore::Node * node=0x0af44c38) Line 100 + 0x2e bytes C++ WebKit.dll!WebCore::FrameSelection::selectAll() Line 1649 + 0x12 bytes C++
Ryosuke Niwa
Comment 60 2013-09-30 22:40:31 PDT
It appears to me that this bug is about adjustSelectionToAvoidCrossingEditingBoundaries not using the right position or that VisiblePosition::canonicalPosition not being able to handle this situation properly. There is nothing wrong with isCandidate.
Brady Eidson
Comment 61 2016-05-24 22:03:12 PDT
Comment on attachment 212894 [details] Patch Assuming that patches for review since 2013 are stale, r-
Ahmad Saleem
Comment 62 2022-08-31 01:30:59 PDT
I am able to reproduce this bug in Safari Technology Preview 152 where in first field, CMD+A / Ctrl+A does not select any text. Test Case Link in Comment 0 - https://persistent.info/webkit/test-cases/contenteditable-select-all-bug.html In case of Chrome Canary 107 and Firefox Nightly 106, it does select text. Thanks!
Radar WebKit Bug Importer
Comment 63 2022-08-31 10:55:23 PDT
Note You need to log in before you can comment on or make changes to this bug.