WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 169733
[Cocoa] Web Automation: non-sticky virtual keys like 'left arrow' don't work properly
https://bugs.webkit.org/show_bug.cgi?id=169733
Summary
[Cocoa] Web Automation: non-sticky virtual keys like 'left arrow' don't work ...
Blaze Burg
Reported
2017-03-15 21:28:44 PDT
This fixes several bugs which when combined prevent the arrow keys from being interpreted correctly.
Attachments
Patch
(47.57 KB, patch)
2017-03-15 22:08 PDT
,
Blaze Burg
no flags
Details
Formatted Diff
Diff
Proposed Fix (v2)
(45.98 KB, patch)
2017-03-16 23:04 PDT
,
Blaze Burg
joepeck
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Blaze Burg
Comment 1
2017-03-15 21:29:04 PDT
<
rdar://problem/30162608
>
Blaze Burg
Comment 2
2017-03-15 22:08:50 PDT
Created
attachment 304611
[details]
Patch
Blaze Burg
Comment 3
2017-03-16 23:04:43 PDT
Created
attachment 304759
[details]
Proposed Fix (v2)
Joseph Pecoraro
Comment 4
2017-03-17 11:12:01 PDT
Comment on
attachment 304759
[details]
Proposed Fix (v2) View in context:
https://bugs.webkit.org/attachment.cgi?id=304759&action=review
> Source/WebKit2/UIProcess/Automation/ios/WebAutomationSessionIOS.mm:120 > - [eventsToBeSent addObject:[[[::WebEvent alloc] initWithKeyEventType:WebEventKeyDown timeStamp:CFAbsoluteTimeGetCurrent() characters:characters charactersIgnoringModifiers:characters modifiers:m_currentModifiers isRepeating:NO withFlags:inputFlags withInputManagerHint:nil keyCode:keyCode isTabKey:isTabKey] autorelease]]; > + [eventsToBeSent addObject:[[[::WebEvent alloc] initWithKeyEventType:WebEventKeyDown timeStamp:CFAbsoluteTimeGetCurrent() characters:characters charactersIgnoringModifiers:unmodifiedCharacters modifiers:m_currentModifiers isRepeating:NO withFlags:inputFlags withInputManagerHint:nil keyCode:keyCode isTabKey:isTabKey] autorelease]];
iOS build error, seems legit: CompileC WebAutomationSessionIOS.o Source/WebKit2/UIProcess/Automation/ios/WebAutomationSessionIOS.mm:120:180: error: use of undeclared identifier 'unmodifiedCharacters' [eventsToBeSent addObject:[[[::WebEvent alloc] initWithKeyEventType:WebEventKeyDown timeStamp:CFAbsoluteTimeGetCurrent() characters:characters charactersIgnoringModifiers:unmodifiedCharacters modifiers:m_currentModifiers isRepeating:NO withFlags:inputFlags withInputManagerHint:nil keyCode:keyCode isTabKey:isTabKey] autorelease]]; ^
Joseph Pecoraro
Comment 5
2017-03-17 11:28:32 PDT
Comment on
attachment 304759
[details]
Proposed Fix (v2) View in context:
https://bugs.webkit.org/attachment.cgi?id=304759&action=review
r=me, assuming you add unmodifiedCharacters to iOS similarly to how you did with Mac
> Source/WebKit2/UIProcess/Automation/mac/WebAutomationSessionMac.mm:328 > - // The 'pause' key does not exist on Apple keyboards and has no keycode. > + // The 'pause' key does not exist on Apple keyboards and has no return
Find and replace error.
> Source/WebKit2/UIProcess/Automation/mac/WebAutomationSessionMac.mm:332 > - // The 'cancel' key does not exist on Apple keyboards and has no keycode. > + // The 'cancel' key does not exist on Apple keyboards and has no return
Find and replace error.
> Source/WebKit2/UIProcess/Automation/mac/WebAutomationSessionMac.mm:353 > - // The 'insert' key does not exist on Apple keyboards and has no keycode. > + // The 'insert' key does not exist on Apple keyboards and has no return
Find and replace error.
Blaze Burg
Comment 6
2017-03-17 12:36:45 PDT
Comment on
attachment 304759
[details]
Proposed Fix (v2) View in context:
https://bugs.webkit.org/attachment.cgi?id=304759&action=review
>> Source/WebKit2/UIProcess/Automation/ios/WebAutomationSessionIOS.mm:120 >> + [eventsToBeSent addObject:[[[::WebEvent alloc] initWithKeyEventType:WebEventKeyDown timeStamp:CFAbsoluteTimeGetCurrent() characters:characters charactersIgnoringModifiers:unmodifiedCharacters modifiers:m_currentModifiers isRepeating:NO withFlags:inputFlags withInputManagerHint:nil keyCode:keyCode isTabKey:isTabKey] autorelease]]; > > iOS build error, seems legit: > > CompileC WebAutomationSessionIOS.o > Source/WebKit2/UIProcess/Automation/ios/WebAutomationSessionIOS.mm:120:180: error: use of undeclared identifier 'unmodifiedCharacters' > [eventsToBeSent addObject:[[[::WebEvent alloc] initWithKeyEventType:WebEventKeyDown timeStamp:CFAbsoluteTimeGetCurrent() characters:characters charactersIgnoringModifiers:unmodifiedCharacters modifiers:m_currentModifiers isRepeating:NO withFlags:inputFlags withInputManagerHint:nil keyCode:keyCode isTabKey:isTabKey] autorelease]]; > ^
Yeah, I messed up the rebase. I'll test it locally again.
Blaze Burg
Comment 7
2017-03-19 08:54:40 PDT
Committed
r214144
: <
http://trac.webkit.org/changeset/214144
>
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