Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTTPS-Only should support redirects from https to http
https://bugs.webkit.org/show_bug.cgi?id=260294 rdar://107491418 Reviewed by Alex Christensen. The current implementation only allows loading a HTTP URL if the current URL is HTTP. That isn't correct because we could receive a request for loading a HTTPS URL with same-site bypass enabled, and then the HTTPS URL redirects to a HTTP URL. In this case, we should continue loading the HTTP URL. This patch adapts and extends the existing test for this behavior. * Source/WebCore/loader/FrameLoader.cpp: (WebCore::FrameLoader::shouldUpgradeRequestforHTTPSOnly const): * Tools/TestWebKitAPI/Tests/WebKitCocoa/Navigation.mm: (TEST): Canonical link: https://commits.webkit.org/267160@main
- Loading branch information