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

Michiel De Backker
Reported 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.
Attachments
Patch (3.87 KB, patch)
2019-08-05 15:06 PDT, Simon Fraser (smfr)
no flags
Radar WebKit Bug Importer
Comment 1 2019-08-05 08:21:38 PDT
Simon Fraser (smfr)
Comment 2 2019-08-05 11:36:26 PDT
Uh oh.
Tim Horton
Comment 3 2019-08-05 12:26:16 PDT
- (void)_setHasCustomContentView:loadedMIMEType: needs to reset the scrollability bit
Simon Fraser (smfr)
Comment 4 2019-08-05 15:06:48 PDT
WebKit Commit Bot
Comment 5 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>
WebKit Commit Bot
Comment 6 2019-08-05 17:32:05 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.