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

Issue 246203004: Fixed unnecessary Paste Popup showing issue when long press on ReadOnly/Disabled elements. (Closed)

Created:
6 years, 8 months ago by AKVT
Modified:
6 years, 2 months ago
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., ojan, rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Paste Popup showing is blocked for ReadOnly/Disabled input and textarea elements. As per isContentEditable() semantics, it should return true for editable elements, not for READ-ONLY and DISABLED elements. Editable element check is not taken care of disabled and readonly elements after getting the hittest result. Hence causing this issue. In this patch we are checking whether the element is readonly or disabled and not allowing paste popup to show. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183874

Patch Set 1 #

Total comments: 1

Patch Set 2 : Updated code based on review comments. #

Total comments: 2

Patch Set 3 : Added Layout Test cases for this change #

Total comments: 19

Patch Set 4 : Updated LayoutTest HTML based on review comments. #

Total comments: 4

Patch Set 5 : Updated Layout Test case HTML based on review comments. #

Total comments: 3

Patch Set 6 : #

Patch Set 7 : Fixed the review comments and refined Layout Test case. #

Patch Set 8 : Refined the test case and added expected.txt #

Patch Set 9 : Refined the Layout test case. #

Total comments: 14

Patch Set 10 : Fixed the review comments and optimized the Layout test. #

Patch Set 11 : Fixed the typo in Layout test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -3 lines) Patch
A LayoutTests/editing/selection/readonly-disabled-hittest.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +71 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/readonly-disabled-hittest-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +15 lines, -0 lines 0 comments Download
M Source/core/rendering/HitTestResult.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 50 (4 generated)
AKVT
The CQ bit was checked by ajith.v@samsung.com
6 years, 8 months ago (2014-04-22 17:28:44 UTC) #1
AKVT
The CQ bit was unchecked by ajith.v@samsung.com
6 years, 8 months ago (2014-04-22 17:28:45 UTC) #2
AKVT
This change can solve the issue of showing Paste Popup window when we do long ...
6 years, 8 months ago (2014-04-23 04:43:17 UTC) #3
AKVT
Added more reviewers.
6 years, 8 months ago (2014-04-23 05:18:31 UTC) #4
AKVT
PTAL
6 years, 8 months ago (2014-04-23 05:53:04 UTC) #5
dcheng
Blink convention is to select the minimal set of reviewers needed for your change. I've ...
6 years, 8 months ago (2014-04-23 08:38:07 UTC) #6
dcheng
On 2014/04/23 08:38:07, dcheng wrote: > Blink convention is to select the minimal set of ...
6 years, 8 months ago (2014-04-23 08:40:39 UTC) #7
AKVT
PTAL
6 years, 8 months ago (2014-04-23 08:41:58 UTC) #8
tkent
Delegate to yosin and yutak because editing-related.
6 years, 8 months ago (2014-04-23 08:47:49 UTC) #9
AKVT
Hi Yoshi and Yuta Kitamura, Please review this change.
6 years, 8 months ago (2014-04-24 10:15:23 UTC) #10
Yuta Kitamura
The change looks legitimate, but could you please write a test?
6 years, 8 months ago (2014-04-25 00:23:32 UTC) #11
yosin_UTC9
https://codereview.chromium.org/246203004/diff/1/Source/core/rendering/HitTestResult.cpp File Source/core/rendering/HitTestResult.cpp (right): https://codereview.chromium.org/246203004/diff/1/Source/core/rendering/HitTestResult.cpp#newcode383 Source/core/rendering/HitTestResult.cpp:383: if (innerElement->isFormControlElement()) { It seems description and this change ...
6 years, 8 months ago (2014-04-25 01:07:19 UTC) #12
AKVT
On 2014/04/25 01:07:19, Yoshi wrote: > https://codereview.chromium.org/246203004/diff/1/Source/core/rendering/HitTestResult.cpp > File Source/core/rendering/HitTestResult.cpp (right): > > https://codereview.chromium.org/246203004/diff/1/Source/core/rendering/HitTestResult.cpp#newcode383 > ...
6 years, 8 months ago (2014-04-25 14:39:28 UTC) #13
AKVT
On 2014/04/25 00:23:32, Yuta Kitamura wrote: > The change looks legitimate, but could you please ...
6 years, 7 months ago (2014-05-02 09:06:15 UTC) #14
AKVT
@Yoshi PTAL I have updated the review comments. @Yuta, Could you pls point out an ...
6 years, 7 months ago (2014-05-05 17:31:20 UTC) #15
yosin_UTC9
Could you write layout test for this? https://codereview.chromium.org/246203004/diff/20001/Source/core/rendering/HitTestResult.cpp File Source/core/rendering/HitTestResult.cpp (right): https://codereview.chromium.org/246203004/diff/20001/Source/core/rendering/HitTestResult.cpp#newcode381 Source/core/rendering/HitTestResult.cpp:381: if (isHTMLTextAreaElement(*m_innerNonSharedNode) ...
6 years, 7 months ago (2014-05-07 01:12:03 UTC) #16
yosin_UTC9
See "LayoutTests/fast/events", |window.eventSender| can fire "mousemove", "mousedown", etc.
6 years, 7 months ago (2014-05-07 01:14:51 UTC) #17
AKVT
@Yosi and Yuta PTAL. I have uploaded layout test cases. Please review and let me ...
6 years, 6 months ago (2014-05-28 14:37:00 UTC) #18
yosin_UTC9
Please use function abstraction for each step. Many statements are hard to read. https://codereview.chromium.org/246203004/diff/60001/LayoutTests/editing/selection/readonly-disabled-hittest.html File ...
6 years, 6 months ago (2014-05-29 03:34:10 UTC) #19
Yuta Kitamura
C++ change looks okay but the test needs more work. https://codereview.chromium.org/246203004/diff/60001/LayoutTests/editing/selection/readonly-disabled-hittest.html File LayoutTests/editing/selection/readonly-disabled-hittest.html (right): https://codereview.chromium.org/246203004/diff/60001/LayoutTests/editing/selection/readonly-disabled-hittest.html#newcode2 ...
6 years, 6 months ago (2014-05-29 06:12:29 UTC) #20
AKVT
@Yuta and Yosi, I have updated formatting in HTML. PTAL https://codereview.chromium.org/246203004/diff/60001/LayoutTests/editing/selection/readonly-disabled-hittest.html File LayoutTests/editing/selection/readonly-disabled-hittest.html (right): https://codereview.chromium.org/246203004/diff/60001/LayoutTests/editing/selection/readonly-disabled-hittest.html#newcode3 ...
6 years, 6 months ago (2014-05-29 07:29:28 UTC) #21
Yuta Kitamura
https://codereview.chromium.org/246203004/diff/80001/LayoutTests/editing/selection/readonly-disabled-hittest.html File LayoutTests/editing/selection/readonly-disabled-hittest.html (right): https://codereview.chromium.org/246203004/diff/80001/LayoutTests/editing/selection/readonly-disabled-hittest.html#newcode3 LayoutTests/editing/selection/readonly-disabled-hittest.html:3: <body onload="test();"> Since test files are governed by Blink ...
6 years, 6 months ago (2014-05-29 07:56:08 UTC) #22
AKVT
@Yosi & Yuta, PTAL. I have updated review comments. Please review the contextClick() calls are ...
6 years, 6 months ago (2014-05-29 09:10:14 UTC) #23
AKVT
@Yosi & Yuta, PTAL
6 years, 6 months ago (2014-06-03 05:38:38 UTC) #24
yosin_UTC9
Function |test| is too long. Please break it up. https://codereview.chromium.org/246203004/diff/100001/LayoutTests/editing/selection/readonly-disabled-hittest.html File LayoutTests/editing/selection/readonly-disabled-hittest.html (right): https://codereview.chromium.org/246203004/diff/100001/LayoutTests/editing/selection/readonly-disabled-hittest.html#newcode37 LayoutTests/editing/selection/readonly-disabled-hittest.html:37: ...
6 years, 6 months ago (2014-06-03 05:52:34 UTC) #25
Yuta Kitamura
I see too much duplicate contents in tests, please consider grouping some common operations into ...
6 years, 6 months ago (2014-06-03 07:01:26 UTC) #26
AKVT
On 2014/06/03 07:01:26, Yuta Kitamura wrote: > I see too much duplicate contents in tests, ...
6 years, 6 months ago (2014-06-18 15:56:29 UTC) #27
yosin_UTC9
For layout tests, - Please use LayoutTests/resources/js-test.js; it offers testing framework. - Please use function ...
6 years, 6 months ago (2014-06-19 01:05:17 UTC) #28
Yuta Kitamura
On 2014/06/18 15:56:29, AJITH KUMAR V wrote: > @Yuta - Can I write Unit test ...
6 years, 6 months ago (2014-06-19 02:46:36 UTC) #29
AKVT
@Yosin and Yuta, Could you please help me to write the relevant content for executing ...
6 years, 5 months ago (2014-07-24 14:32:03 UTC) #30
Yuta Kitamura
On 2014/07/24 14:32:03, AKV wrote: > @Yosin and Yuta, Could you please help me to ...
6 years, 5 months ago (2014-07-25 09:49:36 UTC) #31
AKVT
On 2014/07/25 09:49:36, Yuta Kitamura wrote: > On 2014/07/24 14:32:03, AKV wrote: > > @Yosin ...
6 years, 5 months ago (2014-07-25 10:05:07 UTC) #32
AKVT
@Yosin and Yutak, I have incorporated the review comments with this Patch Set. PTAL. Sorry ...
6 years, 3 months ago (2014-09-03 18:06:29 UTC) #33
yosin_UTC9
It seems you forget to upload LayoutTests/editing/selection/readonly-disabled-hittest-expected.txt
6 years, 3 months ago (2014-09-04 00:32:45 UTC) #34
AKVT
On 2014/09/04 00:32:45, Yosi_UTC9 wrote: > It seems you forget to upload > LayoutTests/editing/selection/readonly-disabled-hittest-expected.txt @Yosi ...
6 years, 3 months ago (2014-09-15 20:11:07 UTC) #35
AKVT
@Yosi & Yuta PTAL
6 years, 2 months ago (2014-10-15 16:48:08 UTC) #37
Yuta Kitamura
Looks mostly fine to me. Mostly stylistic comments. https://codereview.chromium.org/246203004/diff/200001/LayoutTests/editing/selection/readonly-disabled-hittest.html File LayoutTests/editing/selection/readonly-disabled-hittest.html (right): https://codereview.chromium.org/246203004/diff/200001/LayoutTests/editing/selection/readonly-disabled-hittest.html#newcode5 LayoutTests/editing/selection/readonly-disabled-hittest.html:5: <script ...
6 years, 2 months ago (2014-10-16 04:01:23 UTC) #38
AKVT
@Yuta & Yosi PTAL. https://codereview.chromium.org/246203004/diff/200001/LayoutTests/editing/selection/readonly-disabled-hittest.html File LayoutTests/editing/selection/readonly-disabled-hittest.html (right): https://codereview.chromium.org/246203004/diff/200001/LayoutTests/editing/selection/readonly-disabled-hittest.html#newcode5 LayoutTests/editing/selection/readonly-disabled-hittest.html:5: <script src="../../touchadjustment/resources/touchadjustment.js"></script> On 2014/10/16 04:01:23, ...
6 years, 2 months ago (2014-10-16 17:17:14 UTC) #39
AKVT
@Yuta & Yosi PTAL PS11
6 years, 2 months ago (2014-10-16 18:50:31 UTC) #40
Yuta Kitamura
LGTM!
6 years, 2 months ago (2014-10-17 04:42:54 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/246203004/240001
6 years, 2 months ago (2014-10-17 07:20:14 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/27443)
6 years, 2 months ago (2014-10-17 08:48:50 UTC) #45
AKVT
@Yuta, mac_blink failure logs appears independent of this change. Could you please check it.
6 years, 2 months ago (2014-10-17 09:19:18 UTC) #46
Yuta Kitamura
Maybe a flake but I'm not sure. You can try to check CQ again to ...
6 years, 2 months ago (2014-10-17 09:32:53 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/246203004/240001
6 years, 2 months ago (2014-10-17 10:11:32 UTC) #49
commit-bot: I haz the power
6 years, 2 months ago (2014-10-17 10:12:41 UTC) #50
Message was sent while issue was closed.
Committed patchset #11 (id:240001) as 183874

Powered by Google App Engine
This is Rietveld 408576698