Bug 187363 - iPad: Scrolling with hardware keyboard while SELECT popover is visible scrolls the page, detaches popover
Summary: iPad: Scrolling with hardware keyboard while SELECT popover is visible scroll...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-07-05 14:40 PDT by Olivia Barnett
Modified: 2019-03-21 12:13 PDT (History)
5 users (show)

See Also:


Attachments
Patch (2.30 KB, patch)
2018-07-05 14:41 PDT, Olivia Barnett
no flags Details | Formatted Diff | Diff
Patch (1.62 KB, patch)
2018-07-05 15:29 PDT, Olivia Barnett
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivia Barnett 2018-07-05 14:40:08 PDT
iPad: Scrolling with hardware keyboard while SELECT popover is visible scrolls the page, detaches popover
Comment 1 Olivia Barnett 2018-07-05 14:41:37 PDT
Created attachment 344368 [details]
Patch
Comment 2 Tim Horton 2018-07-05 14:51:33 PDT
Comment on attachment 344368 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=344368&action=review

> Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:3686
> +    if (_assistedNodeInformation.elementType != InputType::Select) {

I don't think this is quite right, because pageup/pagedown and spacebar will still scroll.

Instead, I think you should bail at the top of the function similar to what we do in the isContentEditable case.
Comment 3 Olivia Barnett 2018-07-05 15:29:08 PDT
Created attachment 344374 [details]
Patch
Comment 4 Tim Horton 2018-07-05 17:12:12 PDT
Comment on attachment 344374 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=344374&action=review

> Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:3645
> +    if (_assistedNodeInformation.elementType == InputType::Select)

We probably want to add other types to this list (are there other kinds of assisted nodes that use popovers?), but this is a good start.
Comment 5 WebKit Commit Bot 2018-07-05 17:40:29 PDT
Comment on attachment 344374 [details]
Patch

Clearing flags on attachment: 344374

Committed r233553: <https://trac.webkit.org/changeset/233553>
Comment 6 WebKit Commit Bot 2018-07-05 17:40:31 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Radar WebKit Bug Importer 2018-07-05 17:41:19 PDT
<rdar://problem/41872234>