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

Issue 2120913002: [Editing][Regression] Contenteditable w/ "-webkit-user-select:all" should be editable. (Closed)

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

Description

Contenteditable w/ "-webkit-user-select:all" should be editable. <div id ="div" style="-webkit-user-select:all" contenteditable="true"></div> should be editable. In this CL, we ignore "-webkit-user-select:all" if element has |contenteditable="true| in Node::hasEditableStyle and expandSelection by user click. BUG=618920 TEST=editing/selection/user-select/user-select-all-contenteditable.html, mouse/click- user-select-all-textarea.html, user-select/user-select-all-contenteditable.html Committed: https://crrev.com/d607a605c05ae726b55aa3a28b32c94a2ab597ff Cr-Commit-Position: refs/heads/master@{#405440}

Patch Set 1 #

Patch Set 2 : update #

Total comments: 6

Patch Set 3 : update #

Total comments: 8

Patch Set 4 : add selection test #

Total comments: 10

Patch Set 5 : update #

Patch Set 6 : update #

Patch Set 7 : update #

Messages

Total messages: 49 (18 generated)
yoichio
4 years, 5 months ago (2016-07-06 07:14:21 UTC) #4
yosin_UTC9
https://codereview.chromium.org/2120913002/diff/20001/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html File third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html (right): https://codereview.chromium.org/2120913002/diff/20001/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html#newcode9 third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html:9: eventSender.mouseMoveTo(div.offsetLeft, div.offsetTop + 5); Please use Selection API instead ...
4 years, 5 months ago (2016-07-06 07:56:48 UTC) #5
yoichio
update
4 years, 5 months ago (2016-07-07 07:47:11 UTC) #6
yoichio
https://codereview.chromium.org/2120913002/diff/20001/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html File third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html (right): https://codereview.chromium.org/2120913002/diff/20001/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html#newcode9 third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html:9: eventSender.mouseMoveTo(div.offsetLeft, div.offsetTop + 5); On 2016/07/06 07:56:48, Yosi_UTC9 wrote: ...
4 years, 5 months ago (2016-07-07 07:57:02 UTC) #8
yosin_UTC9
https://codereview.chromium.org/2120913002/diff/60001/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html File third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html (right): https://codereview.chromium.org/2120913002/diff/60001/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html#newcode11 third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html:11: selection.collapse(selection.document.getElementById('div'), 0); Why not put "|" in test sample?
4 years, 5 months ago (2016-07-07 08:59:48 UTC) #9
yoichio
https://codereview.chromium.org/2120913002/diff/60001/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html File third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html (right): https://codereview.chromium.org/2120913002/diff/60001/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html#newcode11 third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html:11: selection.collapse(selection.document.getElementById('div'), 0); On 2016/07/07 08:59:48, Yosi_UTC9 wrote: > Why ...
4 years, 5 months ago (2016-07-07 09:03:27 UTC) #10
yosin_UTC9
https://codereview.chromium.org/2120913002/diff/60001/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html File third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html (right): https://codereview.chromium.org/2120913002/diff/60001/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html#newcode11 third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html:11: selection.collapse(selection.document.getElementById('div'), 0); On 2016/07/07 at 09:03:27, yoichio wrote: > ...
4 years, 5 months ago (2016-07-08 01:15:04 UTC) #11
yoichio
update
4 years, 5 months ago (2016-07-08 02:28:39 UTC) #12
yoichio
https://codereview.chromium.org/2120913002/diff/60001/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html File third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html (right): https://codereview.chromium.org/2120913002/diff/60001/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html#newcode11 third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html:11: selection.collapse(selection.document.getElementById('div'), 0); On 2016/07/08 01:15:04, Yosi_UTC9 wrote: > On ...
4 years, 5 months ago (2016-07-08 02:30:39 UTC) #13
yosin_UTC9
https://codereview.chromium.org/2120913002/diff/60001/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html File third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html (right): https://codereview.chromium.org/2120913002/diff/60001/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html#newcode12 third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html:12: selection.document.execCommand("insertText", false, "bar"); On 2016/07/08 at 02:30:39, yoichio wrote: ...
4 years, 5 months ago (2016-07-08 05:21:02 UTC) #14
yoichio
update
4 years, 5 months ago (2016-07-08 08:04:43 UTC) #15
yoichio
https://codereview.chromium.org/2120913002/diff/60001/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html File third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html (right): https://codereview.chromium.org/2120913002/diff/60001/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html#newcode12 third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html:12: selection.document.execCommand("insertText", false, "bar"); On 2016/07/08 05:21:02, Yosi_UTC9 wrote: > ...
4 years, 5 months ago (2016-07-08 08:06:22 UTC) #18
yosin_UTC9
https://codereview.chromium.org/2120913002/diff/90002/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html File third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html (right): https://codereview.chromium.org/2120913002/diff/90002/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html#newcode7 third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html:7: test(function(){ It seems there are not test for HTMLElement.isContentEditable. ...
4 years, 5 months ago (2016-07-08 09:30:50 UTC) #19
yosin_UTC9
https://codereview.chromium.org/2120913002/diff/90002/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html File third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html (right): https://codereview.chromium.org/2120913002/diff/90002/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html#newcode60 third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html:60: test(function(){ Could you move this test case to another ...
4 years, 5 months ago (2016-07-11 01:38:41 UTC) #20
yoichio
update
4 years, 5 months ago (2016-07-11 06:48:50 UTC) #21
yoichio
https://codereview.chromium.org/2120913002/diff/90002/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html File third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html (right): https://codereview.chromium.org/2120913002/diff/90002/third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html#newcode7 third_party/WebKit/LayoutTests/editing/selection/user-select/user-select-all-contenteditable.html:7: test(function(){ On 2016/07/08 09:30:50, Yosi_UTC9 wrote: > It seems ...
4 years, 5 months ago (2016-07-11 06:54:04 UTC) #23
yosin_UTC9
editing/selection/user-select/user-select-all-contenteditable.html is failed: This is a testharness.js-based test. FAIL Selection API can edit in -webkit-user-select:all ...
4 years, 5 months ago (2016-07-11 07:53:44 UTC) #24
yoichio
Done. PTAL.
4 years, 5 months ago (2016-07-11 08:43:51 UTC) #26
yosin_UTC9
lgtm
4 years, 5 months ago (2016-07-12 01:31:15 UTC) #27
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/2120913002/180001
4 years, 5 months ago (2016-07-12 01:33:57 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/215661)
4 years, 5 months ago (2016-07-12 01:43:39 UTC) #31
yoichio
Add tkent@ for core/dom owner.
4 years, 5 months ago (2016-07-12 08:11:15 UTC) #33
tkent
Is the new behavior compatible with other browsers? Does text form controls with user-select:all work ...
4 years, 5 months ago (2016-07-13 00:04:03 UTC) #34
yoichio
On 2016/07/13 00:04:03, tkent wrote: > Is the new behavior compatible with other browsers? Only ...
4 years, 5 months ago (2016-07-14 01:55:55 UTC) #36
tkent
lgtm. Thank you for the clarification.
4 years, 5 months ago (2016-07-14 02:20:08 UTC) #37
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/2120913002/200001
4 years, 5 months ago (2016-07-14 02:22:24 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/255637)
4 years, 5 months ago (2016-07-14 04:46:19 UTC) #42
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/2120913002/200001
4 years, 5 months ago (2016-07-14 05:05:25 UTC) #44
commit-bot: I haz the power
Committed patchset #7 (id:200001)
4 years, 5 months ago (2016-07-14 06:29:14 UTC) #46
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 06:29:16 UTC) #47
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 06:31:49 UTC) #49
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/d607a605c05ae726b55aa3a28b32c94a2ab597ff
Cr-Commit-Position: refs/heads/master@{#405440}

Powered by Google App Engine
This is Rietveld 408576698