WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
225541
[iPadOS] Do not present custom input peripherals when switching back to a tab with a focused element
https://bugs.webkit.org/show_bug.cgi?id=225541
Summary
[iPadOS] Do not present custom input peripherals when switching back to a tab...
Aditya Keerthi
Reported
2021-05-07 15:03:17 PDT
...
Attachments
Patch
(11.45 KB, patch)
2021-05-07 15:08 PDT
,
Aditya Keerthi
wenson_hsieh
: review+
Details
Formatted Diff
Diff
Patch for landing
(12.90 KB, patch)
2021-05-07 17:20 PDT
,
Aditya Keerthi
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Aditya Keerthi
Comment 1
2021-05-07 15:03:34 PDT
<
rdar://problem/77537795
>
Aditya Keerthi
Comment 2
2021-05-07 15:08:11 PDT
Created
attachment 428038
[details]
Patch
Wenson Hsieh
Comment 3
2021-05-07 15:17:43 PDT
Comment on
attachment 428038
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=428038&action=review
> LayoutTests/fast/forms/ios/focus-select-and-switch-tabs.html:35 > + await UIHelper.delayFor(2000);
Nit - though an arbitrary time for a test like this is fine, 2 seconds seems a tad excessive… Does it still reliably fail (without the fix) if we bring it down to say, 500 ms?
Wenson Hsieh
Comment 4
2021-05-07 15:25:37 PDT
(In reply to Wenson Hsieh from
comment #3
)
> Comment on
attachment 428038
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=428038&action=review
> > > LayoutTests/fast/forms/ios/focus-select-and-switch-tabs.html:35 > > + await UIHelper.delayFor(2000); > > Nit - though an arbitrary time for a test like this is fine, 2 seconds seems > a tad excessive… > > Does it still reliably fail (without the fix) if we bring it down to say, > 500 ms?
Alternately, a faster (and potentially more reliable way to test) might be to add a script controller hook to query whether or not there's an active input peripheral, and then just wait for a presentation update (to ensure that the UI process receives the `_elementDidFocus:`, and then just check that the hook returns `NO`).
Aditya Keerthi
Comment 5
2021-05-07 17:20:21 PDT
Created
attachment 428064
[details]
Patch for landing
Aditya Keerthi
Comment 6
2021-05-07 17:21:44 PDT
(In reply to Wenson Hsieh from
comment #3
)
> Comment on
attachment 428038
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=428038&action=review
> > > LayoutTests/fast/forms/ios/focus-select-and-switch-tabs.html:35 > > + await UIHelper.delayFor(2000); > > Nit - though an arbitrary time for a test like this is fine, 2 seconds seems > a tad excessive… > > Does it still reliably fail (without the fix) if we bring it down to say, > 500 ms?
Removed the arbitrary time by waiting for a presentation update and attempting to use the menu to change the selected option.
EWS
Comment 7
2021-05-10 09:26:24 PDT
Committed
r277265
(
237532@main
): <
https://commits.webkit.org/237532@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 428064
[details]
.
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