Bug 238152 - [iOS] Incorrect viewport width after rotating to landscape, then going back cross-origin
Summary: [iOS] Incorrect viewport width after rotating to landscape, then going back c...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-21 13:58 PDT by Ali Juma
Modified: 2022-03-22 09:09 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ali Juma 2022-03-21 13:58:17 PDT
This reproduces in iOS 15.4 on Chrome, Edge, and Firefox, but not in Safari.

Steps to reproduce:
1. In portrait orientation, visit https://www.google.com/search?q=walmart
2. Tap on the link to walmart.com
3. After walmart.com loads, rotate to landscape
4. Tap the back button

Expected result:
Rendered page fills the viewport

Actual result:
Rendered page uses only the left-most portion of the viewport, as if it still has the width it had in portrait mode.

This bug also reproduces with the same steps on bing.com instead of google.com, and with other search terms, so it doesn't seem to be a site-specific bug.

I'm not sure why this doesn't reproduce in Safari; perhaps Safari is doing something that forces a re-layout.
Comment 1 Radar WebKit Bug Importer 2022-03-22 09:09:39 PDT
<rdar://problem/90639341>