LibWeb: Upgrade mixed requests to potentially trustworthy URLs

(if appropriate)
This commit is contained in:
Jamie Mansfield 2024-05-29 19:27:27 +01:00 committed by Andreas Kling
commit 2159377296
Notes: sideshowbarker 2024-07-17 02:55:44 +09:00
3 changed files with 35 additions and 1 deletions

View file

@ -237,7 +237,9 @@ WebIDL::ExceptionOr<JS::GCPtr<PendingResponse>> main_fetch(JS::Realm& realm, Inf
// FIXME: 4. Run report Content Security Policy violations for request.
// FIXME: 5. Upgrade request to a potentially trustworthy URL, if appropriate.
// FIXME: 6. Upgrade a mixed content request to a potentially trustworthy URL, if appropriate.
// 6. Upgrade a mixed content request to a potentially trustworthy URL, if appropriate.
MixedContent::upgrade_a_mixed_content_request_to_a_potentially_trustworthy_url_if_appropriate(request);
// 7. If should request be blocked due to a bad port, should fetching request be blocked as mixed content, or
// should request be blocked by Content Security Policy returns blocked, then set response to a network error.