Installed PWAs ignore system orientation lock

#40880635 sub-issue: #517279502 Android

What this is

Installed PWAs on Android with manifest "orientation": "any" rotate freely even when the Android system auto-rotate lock is enabled. Same PWA opened in a regular Chrome tab respects the lock.

Confirmed fixed locally on Android emulator. Patched APKs below for verification on emulator (x86_64) and physical device (arm64).

Test it

1. Install the patched APK and launch the app called Chromium.

2. Open demo.html in it, then menu -> "Add to Home screen".

3. Launch the PWA from the home-screen icon (the demo must show display-mode standalone: YES).

4. Enable Android auto-rotate lock and rotate the device.

Expected: PWA stays in its orientation. With unpatched Chrome it would rotate.

Downloads

Patched ChromePublic.apk (x86_64 emulator) Patched ChromePublic.apk (arm64 device) SHA256 checksums