LibWeb: Implement should block mixed content response to request

This commit is contained in:
Jamie Mansfield 2024-05-29 19:40:01 +01:00 committed by Andreas Kling
parent 2159377296
commit 7ce35b75aa
Notes: sideshowbarker 2024-07-17 00:53:02 +09:00
3 changed files with 29 additions and 2 deletions

View file

@ -474,8 +474,8 @@ WebIDL::ExceptionOr<JS::GCPtr<PendingResponse>> main_fetch(JS::Realm& realm, Inf
// 19. If response is not a network error and any of the following returns blocked
if (!response->is_network_error() && (
// FIXME: - should internalResponse to request be blocked as mixed content
false
// - should internalResponse to request be blocked as mixed content
MixedContent::should_response_to_request_be_blocked_as_mixed_content(request, internal_response) == Infrastructure::RequestOrResponseBlocking::Blocked
// FIXME: - should internalResponse to request be blocked by Content Security Policy
|| false
// - should internalResponse to request be blocked due to its MIME type