WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
68324
[Gtk] metaKey modifier is not working with eventSender object
https://bugs.webkit.org/show_bug.cgi?id=68324
Summary
[Gtk] metaKey modifier is not working with eventSender object
Devdatta Deshpande
Reported
2011-09-18 11:35:13 PDT
The metaKey modifier is not working as expected with the eventSender object. For e.g. eventSender.mouseDown(["metaKey"]) eventSender.mouseUp(["metaKey"]) eventSender.keyDown(["metaKey"]) should set the event.metaKey to true in the corresponding JavaScript event callback. But event.metaKey always returns false when the event is sent using eventSender object.
Attachments
Patch
(4.24 KB, patch)
2011-09-18 11:59 PDT
,
Devdatta Deshpande
xan.lopez
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Devdatta Deshpande
Comment 1
2011-09-18 11:59:08 PDT
Created
attachment 107789
[details]
Patch
Xan Lopez
Comment 2
2011-11-16 11:49:00 PST
Comment on
attachment 107789
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=107789&action=review
Looks good overall, r- for a few small comments. Thanks for the patch!
> Tools/DumpRenderTree/gtk/EventSender.cpp:281 > else if (JSStringIsEqualToUTF8CString(string, "metaKey"))
The indentation seems to be a bit screwed here?
> LayoutTests/ChangeLog:9 > + using evnetSender object.
s/evnet/event/
> LayoutTests/platform/gtk/fast/events/event-sender-metakey.html:13 > + return;
This seems a bit unnecessary? I'd just have metakey =false; <events with no metakey>; metakey = true; <events with metakey>; and set failed to true if the invariant breaks at any point?
> LayoutTests/platform/gtk/fast/events/event-sender-metakey.html:38 > + resultDiv.innerHTML = (true == failed) ? "FAIL" : "PASS";
Simply failed?
Martin Robinson
Comment 3
2015-05-07 18:01:18 PDT
Closing this since WebKit1 is gone.
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