Bug 200435 - iOS 13: Overflow:hidden on body prevents PDF scroll
Summary: iOS 13: Overflow:hidden on body prevents PDF scroll
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 12
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-08-05 06:46 PDT by Michiel De Backker
Modified: 2019-08-05 17:32 PDT (History)
7 users (show)

See Also:


Attachments
Patch (3.87 KB, patch)
2019-08-05 15:06 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michiel De Backker 2019-08-05 06:46:23 PDT
Test device: IOS 13.0 Beta 4 (17A5547d) on iPad Pro 10.5-inch (MPMF2NF/A).

Adding the overflow:hidden property to the body of a page blocks scrolling in any PDF file opened from that page.

Minimal reproduction scenario:
Given the following html page:
<html>

<head>
</head>

<body style="overflow:hidden;">
    <a href='/test.pdf'>Open me</a>
</body>

</html>

When clicking on "Open me" opens the PDF file but the user can't scroll in it. It remains stuck at the top of the document.

Expected behavior: The PDF file is scroll-able as works on desktop.
Comment 1 Radar WebKit Bug Importer 2019-08-05 08:21:38 PDT
<rdar://problem/53942888>
Comment 2 Simon Fraser (smfr) 2019-08-05 11:36:26 PDT
Uh oh.
Comment 3 Tim Horton 2019-08-05 12:26:16 PDT
- (void)_setHasCustomContentView:loadedMIMEType: needs to reset the scrollability bit
Comment 4 Simon Fraser (smfr) 2019-08-05 15:06:48 PDT
Created attachment 375564 [details]
Patch
Comment 5 WebKit Commit Bot 2019-08-05 17:32:04 PDT
Comment on attachment 375564 [details]
Patch

Clearing flags on attachment: 375564

Committed r248281: <https://trac.webkit.org/changeset/248281>
Comment 6 WebKit Commit Bot 2019-08-05 17:32:05 PDT
All reviewed patches have been landed.  Closing bug.