WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
76421
Add proper offset to position right click to simulate a context menu invocation.
https://bugs.webkit.org/show_bug.cgi?id=76421
Summary
Add proper offset to position right click to simulate a context menu invocation.
Marc-André Decoste
Reported
2012-01-16 19:38:24 PST
Add proper offset to position right click to simulate a context menu invokatioon.
Attachments
Patch
(1.79 KB, patch)
2012-01-17 07:31 PST
,
Marc-André Decoste
no flags
Details
Formatted Diff
Diff
Patch
(3.17 KB, patch)
2012-01-19 15:35 PST
,
Marc-André Decoste
no flags
Details
Formatted Diff
Diff
Patch
(3.35 KB, patch)
2012-01-19 15:51 PST
,
Marc-André Decoste
no flags
Details
Formatted Diff
Diff
Patch
(3.39 KB, patch)
2012-01-20 12:20 PST
,
Marc-André Decoste
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Marc-André Decoste
Comment 1
2012-01-17 07:31:05 PST
Created
attachment 122767
[details]
Patch
Erik Arvidsson
Comment 2
2012-01-17 11:03:18 PST
Comment on
attachment 122767
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=122767&action=review
> Source/WebCore/page/EventHandler.cpp:2337 > + // In a multiline edit, firstRect.maxY() would endup on the next line, so -1. > + int y = firstRect.maxY() ? firstRect.maxY() - 1 : 0;
I find this strange. Why does this only happen for multiline edit and not for other cases?
Marc-André Decoste
Comment 3
2012-01-17 11:31:51 PST
For the same reason that it currently works if you are on the last line of a multiline textarea, there is no other line underneath it and you endup sending the click in the border/gap area which you can try with right clicks and you will notice the difference...
Ojan Vafai
Comment 4
2012-01-19 12:34:22 PST
Comment on
attachment 122767
[details]
Patch Patch looks fine. Can you make a manual test in the ManualTests directory?
Marc-André Decoste
Comment 5
2012-01-19 15:35:24 PST
Created
attachment 123211
[details]
Patch
Marc-André Decoste
Comment 6
2012-01-19 15:36:05 PST
Comment on
attachment 123211
[details]
Patch How about this for the manual test? Thanks! BYE MAD
Marc-André Decoste
Comment 7
2012-01-19 15:40:10 PST
No, wait, I just realized I was in the wrong manual test folder... And I also noticed that there are already ManualTests for the context menu, so I'll piggyback on those... Another patch is coming... Sorry...
Marc-André Decoste
Comment 8
2012-01-19 15:51:59 PST
Created
attachment 123214
[details]
Patch
Marc-André Decoste
Comment 9
2012-01-19 15:53:12 PST
Comment on
attachment 123214
[details]
Patch OK, how about this now?
WebKit Review Bot
Comment 10
2012-01-20 11:47:28 PST
Comment on
attachment 123214
[details]
Patch Rejecting
attachment 123214
[details]
from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: t/git/webkit-commit-queue/Source/WebKit/chromium/v8 --revision 10408 --non-interactive --force --accept theirs-conflict --ignore-externals' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' 46>At revision 10408. ________ running '/usr/bin/python tools/clang/scripts/update.py --mac-only' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' ________ running '/usr/bin/python gyp_webkit' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' Updating webkit projects from gyp files... Full output:
http://queues.webkit.org/results/11311163
Ojan Vafai
Comment 11
2012-01-20 12:02:33 PST
Comment on
attachment 123214
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=123214&action=review
> Source/WebCore/ChangeLog:8 > + No new tests. (OOPS!)
This line is what killed the commit queue. You can just delete it since you've added a manual test.
Marc-André Decoste
Comment 12
2012-01-20 12:20:06 PST
Created
attachment 123356
[details]
Patch
Marc-André Decoste
Comment 13
2012-01-20 12:22:06 PST
Comment on
attachment 123356
[details]
Patch All good now? Thanks!
WebKit Review Bot
Comment 14
2012-01-20 13:05:27 PST
Comment on
attachment 123356
[details]
Patch Clearing flags on attachment: 123356 Committed
r105538
: <
http://trac.webkit.org/changeset/105538
>
WebKit Review Bot
Comment 15
2012-01-20 13:05:32 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug