mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-25 12:32:53 +00:00
Ladybird+LibWeb: Add about scheme support for internal pages
This commit is contained in:
parent
c0acb2918b
commit
05c0640474
Notes:
sideshowbarker
2024-07-18 05:37:06 +09:00
Author: https://github.com/bplaat
Commit: 05c0640474
Pull-request: https://github.com/SerenityOS/serenity/pull/22708
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/skyrising
Reviewed-by: https://github.com/trflynn89
4 changed files with 26 additions and 0 deletions
|
@ -718,6 +718,9 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<PendingResponse>> scheme_fetch(JS::Realm& r
|
|||
response->set_body(MUST(Infrastructure::byte_sequence_as_body(realm, ""sv.bytes())));
|
||||
return PendingResponse::create(vm, request, response);
|
||||
}
|
||||
|
||||
// FIXME: This is actually wrong, see note above.
|
||||
return TRY(nonstandard_resource_loader_file_or_http_network_fetch(realm, fetch_params));
|
||||
}
|
||||
// -> "blob"
|
||||
else if (request->current_url().scheme() == "blob"sv) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue