mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 07:52:50 +00:00
LibWeb: Report CSP violations for request
This commit is contained in:
parent
6f771f45e2
commit
51796e2d3a
Notes:
github-actions[bot]
2025-03-18 23:56:12 +00:00
Author: https://github.com/Lubrsi
Commit: 51796e2d3a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3972
3 changed files with 28 additions and 1 deletions
|
@ -286,7 +286,9 @@ WebIDL::ExceptionOr<GC::Ptr<PendingResponse>> main_fetch(JS::Realm& realm, Infra
|
|||
if (request->local_urls_only() && !Infrastructure::is_local_url(request->current_url()))
|
||||
response = Infrastructure::Response::network_error(vm, "Request with 'local-URLs-only' flag must have a local URL"sv);
|
||||
|
||||
// FIXME: 4. Run report Content Security Policy violations for request.
|
||||
// 4. Run report Content Security Policy violations for request.
|
||||
ContentSecurityPolicy::report_content_security_policy_violations_for_request(realm, request);
|
||||
|
||||
// FIXME: 5. Upgrade request to a potentially trustworthy URL, if appropriate.
|
||||
|
||||
// 6. Upgrade a mixed content request to a potentially trustworthy URL, if appropriate.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue