WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
CLOSED WONTFIX
137903
Use synchronous messages for keyEvent on iOS
https://bugs.webkit.org/show_bug.cgi?id=137903
Summary
Use synchronous messages for keyEvent on iOS
Enrica Casucci
Reported
2014-10-20 17:38:44 PDT
Given then synchronous nature of the iOS keyboard, we need to have key event messages that are synchronous.
Attachments
Patch
(7.64 KB, patch)
2014-10-20 17:46 PDT
,
Enrica Casucci
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Enrica Casucci
Comment 1
2014-10-20 17:46:15 PDT
Created
attachment 240164
[details]
Patch
Alexey Proskuryakov
Comment 2
2014-10-20 22:59:07 PDT
Comment on
attachment 240164
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=240164&action=review
Oh noes :(
> Source/WebKit2/UIProcess/WebPageProxy.cpp:1582 > +void WebPageProxy::handleKeyboardEvent(const NativeWebKeyboardEvent& event, bool useSynchronousMessage)
Can this be made into an entirely separate code path? This code is so complicated that mixing sync and async code paths seems very confusing. Or at the very least, the argument should be named, not a cryptic "true/false".
Enrica Casucci
Comment 3
2014-10-21 11:26:13 PDT
Comment on
attachment 240164
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=240164&action=review
>> Source/WebKit2/UIProcess/WebPageProxy.cpp:1582 >> +void WebPageProxy::handleKeyboardEvent(const NativeWebKeyboardEvent& event, bool useSynchronousMessage) > > Can this be made into an entirely separate code path? This code is so complicated that mixing sync and async code paths seems very confusing. > > Or at the very least, the argument should be named, not a cryptic "true/false".
I don't think the code is that complicated and I did not want any duplication. The function has a default value of false, so all the other call sites don't even need to know about this parameter. The only place where this is used is in WKContentViewInteraction where it is passed [self useSynchronousKeyEvent], which is pretty clear.
Alexey Proskuryakov
Comment 4
2014-10-22 20:05:12 PDT
Comment on
attachment 240164
[details]
Patch Having discussed this in person, we'd like to try a different approach.
Enrica Casucci
Comment 5
2014-10-23 10:17:51 PDT
We opted for a different solution to the problem. We are not going to pursue this.
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