Steps to reproduce
- Install iPadOS 13 through the beta program or by installing Xcode 11 beta and running the iPadOS 13 simulator
- Open any Wikipedia article in Safari
- Resize the Safari window by opening another app in split screen
Expected results
TBD (show the mobile site?)
Actual results
The desktop version shows with a broken layout
Environments observed
- OS version: iPadOS 13
- Device model: iPad (6th generation)
- Device language: en
Notes
iPadOS now sends Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15 as the User-Agent from Safari if the page is loaded while the window is wide enough. If the page is loaded with a narrow window, it sends Mozilla/5.0 (iPad; CPU OS 13_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Mobile/15E148 Safari/604.1. The problem occurs when Wikipedia is loaded fullscreen and resized to be narrow.
The width seems to be set by the widest item on the page:
Adding <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, shrink-to-fit=no"> prevents this scaling. More info: https://developer.apple.com/videos/play/wwdc2019/203/