|
|
Created:
6 years, 6 months ago by AKVT Modified:
6 years, 6 months ago CC:
chromium-reviews, darin-cc_chromium.org, jam, AviD, Cyan Base URL:
https://chromium.googlesource.com/chromium/src.git@master Visibility:
Public. |
DescriptionWhen ContentView is not in focus, we don't have to call scrollFocusedEditableNodeIntoView.
Issue occurs due to speed switching of focus.
BUG=378765
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274502
Patch Set 1 #Patch Set 2 : Review comments fixed. #
Total comments: 1
Messages
Total messages: 19 (0 generated)
PTAL this change.
On 2014/05/29 13:51:13, AJITH KUMAR V wrote: > PTAL this change. Please respond to the bug before we start reviewing this CL.
On 2014/05/29 17:46:20, aurimas wrote: > On 2014/05/29 13:51:13, AJITH KUMAR V wrote: > > PTAL this change. > > Please respond to the bug before we start reviewing this CL. I have uploaded the video of reproduction in bug 378765. PTAL
On 2014/06/02 05:58:58, AJITH KUMAR V wrote: > On 2014/05/29 17:46:20, aurimas wrote: > > On 2014/05/29 13:51:13, AJITH KUMAR V wrote: > > > PTAL this change. > > > > Please respond to the bug before we start reviewing this CL. > > I have uploaded the video of reproduction in bug 378765. PTAL I'm sorry, but I still don't see the video attached to crbug.com/378765.
On 2014/06/02 14:41:03, jdduke wrote: > On 2014/06/02 05:58:58, AJITH KUMAR V wrote: > > On 2014/05/29 17:46:20, aurimas wrote: > > > On 2014/05/29 13:51:13, AJITH KUMAR V wrote: > > > > PTAL this change. > > > > > > Please respond to the bug before we start reviewing this CL. > > > > I have uploaded the video of reproduction in bug 378765. PTAL > > I'm sorry, but I still don't see the video attached to crbug.com/378765. @jdduke, Due to size restriction, earlier change was not visible. Now I uploaded the video with 4 chunks. PTAL in bug 378765.
The patch description is a bit confusing. It refers to "undoScrollFocusedEditableNodeIntoViewIfNeeded", but we no longer have that method. Is it possible your downstream version of ContentViewCore is different than that in upstream Chromium, hence our inability to repro this error?
On 2014/06/02 16:08:47, jdduke wrote: > The patch description is a bit confusing. It refers to > "undoScrollFocusedEditableNodeIntoViewIfNeeded", but we no longer have that > method. Is it possible your downstream version of ContentViewCore is different > than that in upstream Chromium, hence our inability to repro this error? Sorry for the confusion. I have updated the patch description. I am able to reproduce the issue in ContentShell based on Chrome37 as well by following above steps.
On 2014/06/02 16:19:20, AJITH KUMAR V wrote: > On 2014/06/02 16:08:47, jdduke wrote: > > The patch description is a bit confusing. It refers to > > "undoScrollFocusedEditableNodeIntoViewIfNeeded", but we no longer have that > > method. Is it possible your downstream version of ContentViewCore is > different > > than that in upstream Chromium, hence our inability to repro this error? > > Sorry for the confusion. I have updated the patch description. I am able to > reproduce the issue in ContentShell based on Chrome37 as well by following above > steps. Thanks. This change seems reasonable to me. I wonder if we also want to suppress the |scrollFocusedEditableNodeIntoView()| call that occurs in |updateAfterSizeChanged()|, as that too can be delayed by which time the user may have switched focus? If so, you might put a call to cancelRequestToScrollFocusedEditableNodeIntoView() next to the |hideImeIfNeeded()| call in onFocusChanged(false). Aurimas, thoughts?
On 2014/06/02 16:42:42, jdduke wrote: > On 2014/06/02 16:19:20, AJITH KUMAR V wrote: > > On 2014/06/02 16:08:47, jdduke wrote: > > > The patch description is a bit confusing. It refers to > > > "undoScrollFocusedEditableNodeIntoViewIfNeeded", but we no longer have that > > > method. Is it possible your downstream version of ContentViewCore is > > different > > > than that in upstream Chromium, hence our inability to repro this error? > > > > Sorry for the confusion. I have updated the patch description. I am able to > > reproduce the issue in ContentShell based on Chrome37 as well by following > above > > steps. > > Thanks. This change seems reasonable to me. I wonder if we also want to > suppress the |scrollFocusedEditableNodeIntoView()| call that occurs in > |updateAfterSizeChanged()|, as that too can be delayed by which time the user > may have switched focus? If so, you might put a call to > cancelRequestToScrollFocusedEditableNodeIntoView() next to the > |hideImeIfNeeded()| call in onFocusChanged(false). Aurimas, thoughts? @jdduke Thanks for the review. I shall update same changes to updateAfterSizeChanged function as well to block scrollFocusedEditableNodeIntoView() and call cancelRequestToScrollFocusedEditableNodeIntoView() when the ContentView loses focus. I will upload as next patch set.
On 2014/06/02 16:52:37, AJITH KUMAR V wrote: > On 2014/06/02 16:42:42, jdduke wrote: > > On 2014/06/02 16:19:20, AJITH KUMAR V wrote: > > > On 2014/06/02 16:08:47, jdduke wrote: > > > > The patch description is a bit confusing. It refers to > > > > "undoScrollFocusedEditableNodeIntoViewIfNeeded", but we no longer have > that > > > > method. Is it possible your downstream version of ContentViewCore is > > > different > > > > than that in upstream Chromium, hence our inability to repro this error? > > > > > > Sorry for the confusion. I have updated the patch description. I am able to > > > reproduce the issue in ContentShell based on Chrome37 as well by following > > above > > > steps. > > > > Thanks. This change seems reasonable to me. I wonder if we also want to > > suppress the |scrollFocusedEditableNodeIntoView()| call that occurs in > > |updateAfterSizeChanged()|, as that too can be delayed by which time the user > > may have switched focus? If so, you might put a call to > > cancelRequestToScrollFocusedEditableNodeIntoView() next to the > > |hideImeIfNeeded()| call in onFocusChanged(false). Aurimas, thoughts? > > @jdduke Thanks for the review. I shall update same changes to > updateAfterSizeChanged function as well to block > scrollFocusedEditableNodeIntoView() and call > cancelRequestToScrollFocusedEditableNodeIntoView() when the ContentView loses > focus. I will upload as next patch set. The latter should be sufficient, you shouldn't need to do both.
On 2014/06/02 16:55:15, jdduke wrote: > On 2014/06/02 16:52:37, AJITH KUMAR V wrote: > > @jdduke Thanks for the review. I shall update same changes to > > updateAfterSizeChanged function as well to block > > scrollFocusedEditableNodeIntoView() and call > > cancelRequestToScrollFocusedEditableNodeIntoView() when the ContentView loses > > focus. I will upload as next patch set. > > The latter should be sufficient, you shouldn't need to do both. Hmm, unless we don't get the focus change call for the omnibox, I'm not actually sure what the sequence is there...
@jdduke, Updated the changes. PTAL
lgtm but please wait for sign-off from either aurimas@ or tedchoc@.
On 2014/06/02 17:15:49, jdduke wrote: > lgtm but please wait for sign-off from either aurimas@ or tedchoc@. Thanks jdduke. @aurimas & tedchoc PTAL this change.
lgtm https://codereview.chromium.org/304743007/diff/20001/content/public/android/j... File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/304743007/diff/20001/content/public/android/j... content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1576: cancelRequestToScrollFocusedEditableNodeIntoView(); I agree with jdduke@ that this should be sufficient, but the above check won't hurt.
The CQ bit was checked by ajith.v@samsung.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajith.v@samsung.com/304743007/20001
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chrome...)
Message was sent while issue was closed.
Change committed as 274502 |