[Webkit-unassigned] [Bug 259902] New: visualViewport.height returns incorrect value after closing virtual keyboard and rotating screen in web app mode

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 7 14:56:09 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=259902

            Bug ID: 259902
           Summary: visualViewport.height returns incorrect value after
                    closing virtual keyboard and rotating screen in web
                    app mode
           Product: WebKit
           Version: Safari 16
          Hardware: iPhone / iPad
                OS: iOS 16
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: yuweih at google.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Repro:

1. Visit https://ywh233.github.io/ on mobile Safari
2. Add site to home screen
3. Open the added web app
4. Click `iOS rotation repro` from the link
5. Rotate to landscape mode
6. Tap the textarea
7. Tap `Done` on the virtual keyboard to close it
8. Rotate to portrait mode

Expected:

The shown visual viewport size should be 390x797, i.e. matching the size of the layout viewport

Actual:

The shown visual viewport size is 390x343, which is smaller than the layout viewport. The virtual keyboard isn't open, so this is an unexpected value.

---

This seems to be only reproducible in web app mode. I was not able to repro it on mobile Safari. Also I had to open and close the virtual keyboard to trigger the bug. Simply rotating the screen back-and-forth didn't trigger it.

Source code for repro: https://github.com/ywh233/ywh233.github.io/blob/main/ios_rotation_repro.html

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230807/7c1a3177/attachment.htm>


More information about the webkit-unassigned mailing list