Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2a407309138bd090d057233b4e87a5a24662749e
https://github.com/WebKit/WebKit/commit/2a407309138bd090d057233b4e87a5a24662749e
Author: Matthew Finkel <[email protected]>
Date: 2024-07-30 (Tue, 30 Jul 2024)
Changed paths:
M Source/WebCore/loader/FrameLoader.cpp
M Tools/TestWebKitAPI/Tests/WebKitCocoa/Navigation.mm
Log Message:
-----------
Set WillContinueLoading based on WillInternallyHandleFailure
https://bugs.webkit.org/show_bug.cgi?id=277181
rdar://132603871
Reviewed by Alex Christensen.
When we dispatch the provisional load failure in the FrameLoader, we include
two additional bits of information: whether we are attempting a recovery
through an internal mechanism, and whether this failure is fatal and we won't
continue loading something else. Currently these are distinct bits, but they
shouldn't be. If we are handling the failure internally, then that implies that
the load will continue. The consequence of the current behavior is that we
might prematurely destroy the ProvisionalPageProxy and the load will hang.
This patch initializes the WillContinueLoading depending on the state of
WillInternallyHandleFailure. And this adds a new test for this case.
* Source/WebCore/loader/FrameLoader.cpp:
(WebCore::FrameLoader::dispatchDidFailProvisionalLoad):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/Navigation.mm:
(TEST(WKNavigation, HTTPSFirstHTTPDowngradeAfterPSON)):
Canonical link: https://commits.webkit.org/281626@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes