Post

Replies

Boosts

Views

Activity

Comment on Safe areas ignored after navigating a WebView/WebPage back in a NavigationStack
I downloaded the project and couldn't get it to compile. However, I inspected the code and I see that the back button uses the same mechanism as domchristie's MWE, so I would expect the same bug (a WebPage.BackForwardList.Item is passed to WebPage.load()). You can see it for yourself by running domchristie's code. Padding is auto added to the web page to account for the nav bar, but the system forgets about this padding when navigating back, causing the page to jump to a different position.
Topic: Safari & Web SubTopic: General Tags:
Sep ’25