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

Issue 764313004: Fix the problem to keep the selection when clicking the substring out of range (Closed)

Created:
6 years ago by Miyoung Shin(g)
Modified:
6 years ago
CC:
blink-reviews, blink-reviews-events_chromium.org, dglazkov+blink, eae+blinkwatch, jdduke (slow)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Fix the problem to keep the selection when clicking the substring out of range The problem is that it's not consistent to keep the selection when clicking the substiring in/out of range. We need the additional condition missing from http://crrev.com/507533002 BUG=32865, 438102 R=yosin@chromium.org R=rbyers@chromium.org TEST=fast/forms/setrangetext-out-of-range.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186550

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -2 lines) Patch
A LayoutTests/fast/forms/setrangetext-out-of-range.html View 1 1 chunk +36 lines, -0 lines 0 comments Download
A LayoutTests/fast/forms/setrangetext-out-of-range-expected.txt View 1 1 chunk +15 lines, -0 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 chunks +3 lines, -2 lines 1 comment Download

Messages

Total messages: 14 (2 generated)
Miyoung Shin(g)
yosin@, rbyers@, PTAL
6 years ago (2014-12-02 06:00:06 UTC) #1
Rick Byers
I'm not enough of an expert on blink editing / selection to approve this (there's ...
6 years ago (2014-12-02 14:49:39 UTC) #2
yosin_UTC9
https://codereview.chromium.org/764313004/diff/1/LayoutTests/fast/forms/setrangetext-out-of-range.html File LayoutTests/fast/forms/setrangetext-out-of-range.html (right): https://codereview.chromium.org/764313004/diff/1/LayoutTests/fast/forms/setrangetext-out-of-range.html#newcode5 LayoutTests/fast/forms/setrangetext-out-of-range.html:5: window.onload = function() { nit: Please add |jsTestIsAsync = ...
6 years ago (2014-12-03 01:07:00 UTC) #3
Miyoung Shin(g)
https://codereview.chromium.org/764313004/diff/1/LayoutTests/fast/forms/setrangetext-out-of-range.html File LayoutTests/fast/forms/setrangetext-out-of-range.html (right): https://codereview.chromium.org/764313004/diff/1/LayoutTests/fast/forms/setrangetext-out-of-range.html#newcode5 LayoutTests/fast/forms/setrangetext-out-of-range.html:5: window.onload = function() { On 2014/12/03 01:07:00, Yosi_UTC9 wrote: ...
6 years ago (2014-12-03 03:39:10 UTC) #4
Miyoung Shin(g)
@yosin, I've uploaded the patch, PTAL
6 years ago (2014-12-04 06:53:28 UTC) #5
yosin_UTC9
lgtm
6 years ago (2014-12-04 08:19:03 UTC) #6
Rick Byers
On 2014/12/04 08:19:03, Yosi_UTC9 wrote: > lgtm RubberStamp LGTM
6 years ago (2014-12-04 16:30:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/764313004/20001
6 years ago (2014-12-04 22:06:58 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://src.chromium.org/viewvc/blink?view=rev&revision=186550
6 years ago (2014-12-04 23:41:51 UTC) #10
Donn Denman
This change is causing a problem for for Contextual Search (a feature for Chrome on ...
6 years ago (2014-12-09 00:59:37 UTC) #12
Rick Byers
On 2014/12/09 00:59:37, Donn Denman wrote: > This change is causing a problem for for ...
6 years ago (2014-12-09 17:53:20 UTC) #13
Donn Denman
6 years ago (2014-12-09 18:07:12 UTC) #14
Message was sent while issue was closed.
On 2014/12/09 17:53:20, Rick Byers wrote:
> On 2014/12/09 00:59:37, Donn Denman wrote:
> > This change is causing a problem for for Contextual Search (a feature for
> Chrome
> > on Android).  See crbug.com/440086.  It looks like only one part of this
> change
> > is causing the problem for our feature.  What's the best way to resolve this
> > incompatibility?
> > 
> >
>
https://codereview.chromium.org/764313004/diff/20001/Source/core/page/EventHa...
> > File Source/core/page/EventHandler.cpp (right):
> > 
> >
>
https://codereview.chromium.org/764313004/diff/20001/Source/core/page/EventHa...
> > Source/core/page/EventHandler.cpp:563: } else if (m_selectionInitiationState
> !=
> > ExtendedSelection) {
> > This line causes a problem for Contextual Search (a feature for Chrome on
> > Android).
> 
> If there's not a trivial fix, then perhaps we should revert this CL for now?

Based on communication in the CS bug (crbug.com/440086) it looks like Miyoung is
trying to reproduce this and fix the incompatibility, so I'm willing to wait a
day or two before reverting.

Powered by Google App Engine
This is Rietveld 408576698