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

Issue 14969020: Avoid adding placeholder when deleting last text in root (Closed)

Created:
7 years, 7 months ago by leviw_travelin_and_unemployed
Modified:
7 years, 7 months ago
Reviewers:
ojan
CC:
blink-reviews, ojan, aurimas (slooooooooow), eseidel, Julie Parent, yosin_UTC9
Visibility:
Public.

Description

Avoid adding placeholder when deleting last text in root Editing code uses placeholders for all manner of different functions including holding open content editable blocks. When there's no content in the blocks except text, these placeholders aren't necessary and is confusing Android's IME path. Android's IME path should probably just be fixed, but in the meantime, this creates fewer placeholders, which is an improvement. NB, I tried numerous other strategies to try and more aggressively remove br placeholders in other cases where they aren't necessary, but it ended up being a very deep rabbit hole of editing nightmares that ultimately just wasn't worth it. BUG=222806, 236726 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150400

Patch Set 1 #

Total comments: 1

Patch Set 2 : Broader patch that incorporates Yoshifumi's fix to HTMLInputElement #

Patch Set 3 : Fix merge failure in TestExpectations #

Patch Set 4 : I keep forgetting the bots don't <3 binary files. #

Patch Set 5 : More test expectation flags. #

Total comments: 9

Patch Set 6 : Fixed bad TestExpectations behavior and unnecessary results churn. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -69 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 2 chunks +16 lines, -1 line 0 comments Download
M LayoutTests/editing/deleting/5847330-2-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/editing/deleting/delete-3775172-fix-expected.txt View 1 2 3 4 2 chunks +3 lines, -5 lines 0 comments Download
M LayoutTests/editing/deleting/delete-across-editable-content-boundaries-1-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/deleting/delete-all-text-in-text-field-assertion-expected.txt View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/editing/deleting/delete-and-cleanup.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/deleting/delete-and-cleanup-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/deleting/delete-block-merge-contents-025-expected.txt View 1 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/editing/deleting/delete-select-all-002-expected.txt View 1 chunk +1 line, -3 lines 0 comments Download
M LayoutTests/editing/deleting/delete-start-block-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/editing/deleting/paste-with-transparent-background-color-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/editing/execCommand/create-list-with-hr-expected.txt View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/editing/execCommand/forward-delete-no-scroll-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/editing/execCommand/insertHTML-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/editing/pasteboard/copy-paste-content-starting-and-ending-canvas-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/editing/pasteboard/select-element-1-expected.txt View 2 chunks +2 lines, -3 lines 0 comments Download
M LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/events/event-input-contentEditable-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/events/script-tests/event-input-contentEditable.js View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/parser/nested-fragment-parser-crash-expected.txt View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/platform/chromium-win/editing/deleting/5272440-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/platform/chromium-win/editing/deleting/delete-3775172-fix-expected.txt View 2 chunks +3 lines, -5 lines 0 comments Download
M LayoutTests/platform/chromium-win/editing/deleting/delete-all-text-in-text-field-assertion-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/platform/chromium-win/editing/deleting/delete-block-contents-001-expected.txt View 2 chunks +1 line, -3 lines 0 comments Download
M LayoutTests/platform/chromium-win/editing/deleting/delete-block-contents-002-expected.txt View 2 chunks +1 line, -3 lines 0 comments Download
M LayoutTests/platform/chromium-win/editing/deleting/delete-block-contents-003-expected.txt View 2 chunks +1 line, -3 lines 0 comments Download
M LayoutTests/platform/chromium-win/editing/deleting/delete-image-004-expected.txt View 2 chunks +2 lines, -3 lines 0 comments Download
M LayoutTests/platform/chromium-win/editing/execCommand/create-list-with-hr-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/platform/chromium-win/editing/inserting/insert-3775316-fix-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/chromium-win/editing/inserting/insert-after-delete-001-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/chromium-win/editing/pasteboard/4076267-3-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/chromium-win/fast/forms/input-placeholder-visibility-3-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/chromium-win/fast/forms/textarea-placeholder-visibility-1-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/editing/DeleteSelectionCommand.cpp View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M Source/core/html/HTMLInputElement.cpp View 1 2 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
leviw_travelin_and_unemployed
7 years, 7 months ago (2013-05-09 23:28:35 UTC) #1
ojan
lgtm This seems fine. We can view it as an incremental step in the direction ...
7 years, 7 months ago (2013-05-09 23:34:59 UTC) #2
ojan
https://codereview.chromium.org/14969020/diff/1/Source/core/editing/DeleteSelectionCommand.cpp File Source/core/editing/DeleteSelectionCommand.cpp (right): https://codereview.chromium.org/14969020/diff/1/Source/core/editing/DeleteSelectionCommand.cpp#newcode805 Source/core/editing/DeleteSelectionCommand.cpp:805: bool rootWillStayOpenWithoutPlaceholder = downstreamEnd.containerNode()->isTextNode() Actually, now that I look ...
7 years, 7 months ago (2013-05-10 23:38:21 UTC) #3
leviw_travelin_and_unemployed
On 2013/05/10 23:38:21, ojan wrote: > https://codereview.chromium.org/14969020/diff/1/Source/core/editing/DeleteSelectionCommand.cpp > File Source/core/editing/DeleteSelectionCommand.cpp (right): > > https://codereview.chromium.org/14969020/diff/1/Source/core/editing/DeleteSelectionCommand.cpp#newcode805 > ...
7 years, 7 months ago (2013-05-10 23:50:57 UTC) #4
yosin_UTC9
This patch also fixes issue 236726 and changes for test of input-placeholder-visibility-3.html and textarea-placholder-visibility-1.html cover ...
7 years, 7 months ago (2013-05-13 03:58:45 UTC) #5
leviw_travelin_and_unemployed
For the record, I think this is ready to go. I'm not sure of what's ...
7 years, 7 months ago (2013-05-14 18:53:42 UTC) #6
ojan
C++ side looks good. A few questions about the tests. https://codereview.chromium.org/14969020/diff/27001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/14969020/diff/27001/LayoutTests/TestExpectations#newcode1570 ...
7 years, 7 months ago (2013-05-14 19:02:17 UTC) #7
leviw_travelin_and_unemployed
https://codereview.chromium.org/14969020/diff/27001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/14969020/diff/27001/LayoutTests/TestExpectations#newcode1570 LayoutTests/TestExpectations:1570: # crbug.com/234758 [ Debug ] fast/parser/nested-fragment-parser-crash.html [ Pass Timeout ...
7 years, 7 months ago (2013-05-14 23:32:19 UTC) #8
ojan
lgtm https://codereview.chromium.org/14969020/diff/27001/LayoutTests/editing/pasteboard/smart-paste-in-text-control-expected.txt File LayoutTests/editing/pasteboard/smart-paste-in-text-control-expected.txt (right): https://codereview.chromium.org/14969020/diff/27001/LayoutTests/editing/pasteboard/smart-paste-in-text-control-expected.txt#newcode3 LayoutTests/editing/pasteboard/smart-paste-in-text-control-expected.txt:3: FAIL: Smart cutting and pasting do not result ...
7 years, 7 months ago (2013-05-14 23:45:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leviw@chromium.org/14969020/36001
7 years, 7 months ago (2013-05-15 00:14:48 UTC) #10
leviw_travelin_and_unemployed
On 2013/05/14 23:45:15, ojan wrote: > lgtm > > https://codereview.chromium.org/14969020/diff/27001/LayoutTests/editing/pasteboard/smart-paste-in-text-control-expected.txt > File LayoutTests/editing/pasteboard/smart-paste-in-text-control-expected.txt > (right): ...
7 years, 7 months ago (2013-05-15 00:15:08 UTC) #11
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 7 months ago (2013-05-15 02:22:05 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leviw@chromium.org/14969020/36001
7 years, 7 months ago (2013-05-15 04:10:34 UTC) #13
commit-bot: I haz the power
Change committed as 150400
7 years, 7 months ago (2013-05-15 12:09:55 UTC) #14
Stephen White
7 years, 7 months ago (2013-05-15 17:07:16 UTC) #15
Message was sent while issue was closed.
This seems to be causing crashes and flaky failures on the test
editing/undo/orphaned-selection-crash-bug32823-2.html:

http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=edi...

Powered by Google App Engine
This is Rietveld 408576698