Branch: refs/heads/webkitglib/2.52
Home: https://github.com/WebKit/WebKit
Commit: 9e70506e3cd6cc9db8285ac5251043c6964e6af1
https://github.com/WebKit/WebKit/commit/9e70506e3cd6cc9db8285ac5251043c6964e6af1
Author: Sihui Liu <[email protected]>
Date: 2026-03-25 (Wed, 25 Mar 2026)
Changed paths:
M Source/WebKit/UIProcess/WebPageProxy.cpp
Log Message:
-----------
Cherry-pick 309914@main (7ca7678e5e18).
https://bugs.webkit.org/show_bug.cgi?id=310425
[ Debug ] Fix WKNavigation.HTTPSFirstWithHTTPRedirect
https://bugs.webkit.org/show_bug.cgi?id=310425
rdar://173051610
Reviewed by Per Arne Vollan.
The assertion `ASSERT(m_provisionalURL.isEmpty())` in
`FrameLoadState::didStartProvisionalLoad()` fails when running the
test. The cause is we do not set `FrameLoadState::m_provsionalURL` of
`WebPageProxy::m_mainFrame` when the load of
provisional frame fails, but we set it when the load of provisional frame
starts or gets redirected. To fix this, this
patch makes sure we also update the frame state in
`WebPageProxy::didFailProvisionalLoadForFrameShared`, which matches
the behavior in
`WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrameShared` and
`ProvisionalPageProxy::didStartProvisionalLoadForFrame`.
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::didFailProvisionalLoadForFrameShared):
Canonical link: https://commits.webkit.org/309914@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications