Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d0ef4e811a69404852ff6f1fbd2518d1bec4b2f6
https://github.com/WebKit/WebKit/commit/d0ef4e811a69404852ff6f1fbd2518d1bec4b2f6
Author: Jessica Cheung <[email protected]>
Date: 2026-10-05 (Mon, 05 Oct 2026)
Changed paths:
A
LayoutTests/fast/visual-viewport/ios/interactive-widget/dynamic-inner-height-expected.txt
A
LayoutTests/fast/visual-viewport/ios/interactive-widget/dynamic-inner-height.html
M Source/WebKit/WebProcess/WebPage/Cocoa/WebPageCocoa.mm
Log Message:
-----------
Can't sign in to kidshibbett.com
https://bugs.webkit.org/show_bug.cgi?id=326115
rdar://186817825
Reviewed by Abrar Rahman Protyasha.
kidshibbett.com uses `interactive-widget=resizes-content`
and has javascript code to calculate the bottom of the sign
in panel as window.innerHeight - visual viewport height.
It raises the panel by that amount, trying to account
for the keyboard.
However, with `interactive-widget=resizes-content`, the page
is already shrunk to fit above the keyboard but the innerHeight
stayed around ~700 instead of shrinking to ~300. So, the page
accounted for the keyboard height twice and the sign in
panel goes off screen.
To fix this, the innerHeight should be reflecting the shrunken
state under resizes-content, so change the code to reflect
unobscuredContentRectRespectingInputViewBounds.
Add a layout test that ensures this change is exhibited.
*
LayoutTests/fast/visual-viewport/ios/interactive-widget/dynamic-inner-height-expected.txt:
Added.
*
LayoutTests/fast/visual-viewport/ios/interactive-widget/dynamic-inner-height.html:
Added.
* Source/WebKit/WebProcess/WebPage/Cocoa/WebPageCocoa.mm:
(WebKit::WebPage::updateVisibleContentRects):
Canonical link: https://commits.webkit.org/322718@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications