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 2125553002: Fix an assertion failure in HTMLTextAreaElement::subtreeHasChanged. (Closed)

Created:
4 years, 5 months ago by tkent
Modified:
4 years, 5 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix an assertion failure in HTMLTextAreaElement::subtreeHasChanged. Selection.deleteFromDocument() leaves an empty Text node in innerEditor of TEXTAREA element, and InsertLineBreakCommand inserted a placeholder BR element *before* the empty Text node. It broke the assumption of TEXTAREA element. This CL makes sure the BR element is appended at the last. BUG=623547 Committed: https://crrev.com/3f6836d02c1cc98aec47ae8c1ff1e64522290403 Cr-Commit-Position: refs/heads/master@{#403853}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -3 lines) Patch
A third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-empty-textarea.html View 1 chunk +17 lines, -0 lines 3 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp View 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
tkent
yosin@, would you review this please?
4 years, 5 months ago (2016-07-05 09:14:46 UTC) #3
yosin_UTC9
https://codereview.chromium.org/2125553002/diff/1/third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-empty-textarea.html File third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-empty-textarea.html (right): https://codereview.chromium.org/2125553002/diff/1/third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-empty-textarea.html#newcode10 third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-empty-textarea.html:10: document.querySelector('textarea').focus(); Can we use |assert_selection()|? Samples: https://cs.chromium.org/search/?q=assert_selection&sq=package:chromium&type=cs assert_selection( '^<textarea>\ntext3 ...
4 years, 5 months ago (2016-07-06 01:10:24 UTC) #4
tkent
https://codereview.chromium.org/2125553002/diff/1/third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-empty-textarea.html File third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-empty-textarea.html (right): https://codereview.chromium.org/2125553002/diff/1/third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-empty-textarea.html#newcode10 third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-empty-textarea.html:10: document.querySelector('textarea').focus(); On 2016/07/06 at 01:10:24, Yosi_UTC9 wrote: > Can ...
4 years, 5 months ago (2016-07-06 03:52:52 UTC) #5
yosin_UTC9
lgtm https://codereview.chromium.org/2125553002/diff/1/third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-empty-textarea.html File third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-empty-textarea.html (right): https://codereview.chromium.org/2125553002/diff/1/third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-empty-textarea.html#newcode10 third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-empty-textarea.html:10: document.querySelector('textarea').focus(); On 2016/07/06 at 03:52:52, tkent wrote: > ...
4 years, 5 months ago (2016-07-06 04:03:59 UTC) #7
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/2125553002/1
4 years, 5 months ago (2016-07-06 04:04:17 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-06 05:21:54 UTC) #9
commit-bot: I haz the power
4 years, 5 months ago (2016-07-06 05:23:22 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/3f6836d02c1cc98aec47ae8c1ff1e64522290403
Cr-Commit-Position: refs/heads/master@{#403853}

Powered by Google App Engine
This is Rietveld 408576698