Bug 200435

Summary: iOS 13: Overflow:hidden on body prevents PDF scroll
Product: WebKit Reporter: Michiel De Backker <michiel.debackker>
Component: CSSAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: aestes, commit-queue, koivisto, simon.fraser, thorton, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari 12   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

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.