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

Issue 766143002: Fix contextmenu event location for menu key in an iframe (Closed)

Created:
6 years ago by Deepak
Modified:
5 years, 11 months ago
Reviewers:
Rick Byers
CC:
blink-reviews, blink-reviews-events_chromium.org, dglazkov+blink, eae+blinkwatch, arv (Not doing code reviews)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fix contextmenu event location for menu key in an iframe For focusedElement contentToRootView translate should not happen. so that we will get proper coprdinate for context menu i.e centerPoint of clippedRect of focusedElement. BUG=435662 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188215

Patch Set 1 #

Patch Set 2 : Test Case added. #

Patch Set 3 : Changes as per review comments. #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : Added New Test case. #

Patch Set 6 : #

Total comments: 8

Patch Set 7 : Test case changes. #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : Added description of testcase. #

Total comments: 6

Patch Set 11 : changes as per review comments. #

Patch Set 12 : Addressing nit. #

Patch Set 13 : Using iframes instead of frameset. #

Patch Set 14 : changing test case. #

Total comments: 7

Patch Set 15 : Changes as per review comments. #

Patch Set 16 : Adding failure case for mac, as mac does not have menu key. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -12 lines) Patch
M LayoutTests/NeverFixTests View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/fast/events/menu-key-context-menu-position.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +31 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/menu-key-context-menu-position-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +12 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/resources/menu-key-context-menu-position-frame.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +7 lines, -12 lines 0 comments Download

Messages

Total messages: 47 (10 generated)
Deepak
PTAL.
6 years ago (2014-12-01 10:14:55 UTC) #2
Deepak
@arv PTAL at my changes.
6 years ago (2014-12-03 05:45:21 UTC) #4
anish.p
Removing myself from CC list.
6 years ago (2014-12-03 06:23:41 UTC) #5
Deepak
@Rick Byers, PTAL at my small changes. Thanks
6 years ago (2014-12-05 05:42:03 UTC) #7
Rick Byers
Change looks reasonable but you need a test. Perhaps you can find a similar pattern ...
6 years ago (2014-12-05 18:14:46 UTC) #8
Rick Byers
On 2014/12/03 05:45:21, Deepak wrote: > @arv > PTAL at my changes. Moving arv@ to ...
6 years ago (2014-12-05 18:15:35 UTC) #10
Deepak
On 2014/12/05 18:15:35, Rick Byers wrote: > On 2014/12/03 05:45:21, Deepak wrote: > > @arv ...
6 years ago (2014-12-08 07:30:15 UTC) #11
Rick Byers
On 2014/12/08 07:30:15, Deepak wrote: > On 2014/12/05 18:15:35, Rick Byers wrote: > > On ...
6 years ago (2014-12-08 22:02:17 UTC) #12
Deepak
On 2014/12/08 22:02:17, Rick Byers wrote: > On 2014/12/08 07:30:15, Deepak wrote: > > On ...
6 years ago (2014-12-09 04:12:19 UTC) #13
Rick Byers
https://codereview.chromium.org/766143002/diff/40001/LayoutTests/fast/events/menu-key-context-menu-element-focus.html File LayoutTests/fast/events/menu-key-context-menu-element-focus.html (right): https://codereview.chromium.org/766143002/diff/40001/LayoutTests/fast/events/menu-key-context-menu-element-focus.html#newcode18 LayoutTests/fast/events/menu-key-context-menu-element-focus.html:18: if(count === 2 && (e.currentTarget == anchorNode)) { Does ...
6 years ago (2014-12-10 03:09:25 UTC) #14
Deepak
PTAL at changes and comments Thanks https://codereview.chromium.org/766143002/diff/40001/LayoutTests/fast/events/menu-key-context-menu-element-focus.html File LayoutTests/fast/events/menu-key-context-menu-element-focus.html (right): https://codereview.chromium.org/766143002/diff/40001/LayoutTests/fast/events/menu-key-context-menu-element-focus.html#newcode18 LayoutTests/fast/events/menu-key-context-menu-element-focus.html:18: if(count === 2 ...
6 years ago (2014-12-10 06:40:27 UTC) #15
Deepak
I also observed that as the "http://jsfiddle.net/kvckb90w/2/show/" is not normal html page as we are ...
6 years ago (2014-12-10 09:26:28 UTC) #16
Deepak
@Rick Bayers I have added new test case, This test case is getting failed without ...
6 years ago (2014-12-10 12:52:36 UTC) #17
Deepak
On 2014/12/10 12:52:36, Deepak wrote: @Rick Bayers I have added new test case, This test ...
6 years ago (2014-12-12 10:25:35 UTC) #18
Deepak
On 2014/12/12 10:25:35, Deepak wrote: > On 2014/12/10 12:52:36, Deepak wrote: > @Rick Bayers > ...
6 years ago (2014-12-15 12:38:17 UTC) #19
Deepak
PTAL at my changes. Thanks
6 years ago (2014-12-17 13:11:39 UTC) #20
Rick Byers
On 2014/12/10 06:40:27, Deepak wrote: > PTAL at changes and comments > Thanks > > ...
6 years ago (2014-12-18 22:28:23 UTC) #21
Deepak
On 2014/12/18 22:28:23, Rick Byers wrote: > On 2014/12/10 06:40:27, Deepak wrote: > > PTAL ...
6 years ago (2014-12-19 10:42:14 UTC) #22
Rick Byers
Thanks, now the test makes sense! Just a couple minor things left... https://codereview.chromium.org/766143002/diff/100001/LayoutTests/fast/events/menu-key-context-menu-position.html File LayoutTests/fast/events/menu-key-context-menu-position.html ...
6 years ago (2014-12-19 15:14:28 UTC) #23
Deepak
1.Even while putting description() in the testcase, it is not appearing in the expected result ...
6 years ago (2014-12-20 09:35:33 UTC) #24
Deepak
description() issue resolved. I have updated changes. PTAL.
5 years, 12 months ago (2014-12-22 12:44:16 UTC) #25
Deepak
On 2014/12/22 12:44:16, Deepak wrote: > description() issue resolved. > I have updated changes. > ...
5 years, 12 months ago (2014-12-23 05:45:47 UTC) #26
Deepak
On 2014/12/23 05:45:47, Deepak wrote: > On 2014/12/22 12:44:16, Deepak wrote: > > description() issue ...
5 years, 11 months ago (2015-01-05 11:36:40 UTC) #27
Rick Byers
Sorry for the delay, I was out of the office for Christmas / New Years ...
5 years, 11 months ago (2015-01-05 18:16:24 UTC) #28
Deepak
*Now PASS for should be check is coming fine for all 3 comparisions. *iframes are ...
5 years, 11 months ago (2015-01-06 13:27:02 UTC) #29
Deepak
*event.target.id I am compairing same way as happening in menu-key-context-menu-document.html. *I have to take separate ...
5 years, 11 months ago (2015-01-06 15:07:06 UTC) #30
Rick Byers
Great, looks like the test is working properly now! Just a couple more minor style ...
5 years, 11 months ago (2015-01-07 16:57:34 UTC) #31
Deepak
Thanks for review.Changes done as suggested. PTAL. https://codereview.chromium.org/766143002/diff/260001/LayoutTests/fast/events/menu-key-context-menu-position.html File LayoutTests/fast/events/menu-key-context-menu-position.html (right): https://codereview.chromium.org/766143002/diff/260001/LayoutTests/fast/events/menu-key-context-menu-position.html#newcode12 LayoutTests/fast/events/menu-key-context-menu-position.html:12: shouldBe(event.target.id, 'inputNode'); ...
5 years, 11 months ago (2015-01-08 10:11:29 UTC) #32
Deepak
PTAL.
5 years, 11 months ago (2015-01-09 13:02:39 UTC) #33
Rick Byers
LGTM
5 years, 11 months ago (2015-01-09 16:21:35 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/766143002/280001
5 years, 11 months ago (2015-01-10 04:40:50 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/41634)
5 years, 11 months ago (2015-01-10 06:23:29 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/766143002/280001
5 years, 11 months ago (2015-01-11 03:30:42 UTC) #40
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/38165)
5 years, 11 months ago (2015-01-11 11:26:19 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/766143002/280001
5 years, 11 months ago (2015-01-12 09:23:04 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/766143002/300001
5 years, 11 months ago (2015-01-12 10:28:47 UTC) #46
commit-bot: I haz the power
5 years, 11 months ago (2015-01-12 11:37:52 UTC) #47
Message was sent while issue was closed.
Committed patchset #16 (id:300001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188215

Powered by Google App Engine
This is Rietveld 408576698