mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +00:00
LibWeb: Make about:blank load correctly
- Don't treat an empty `about:blank` resource as an error. - Give `about:` urls a content-type so `FrameLoader::parse_document()` won't reject them.
This commit is contained in:
parent
61a9ad45ed
commit
1f82beded3
Notes:
sideshowbarker
2024-07-17 10:55:11 +09:00
Author: https://github.com/AtkinsSJ
Commit: 1f82beded3
Pull-request: https://github.com/SerenityOS/serenity/pull/14020
Reviewed-by: https://github.com/kennethmyhra ✅
Reviewed-by: https://github.com/linusg
2 changed files with 7 additions and 3 deletions
|
@ -331,7 +331,7 @@ void FrameLoader::resource_did_load()
|
|||
}
|
||||
m_redirects_count = 0;
|
||||
|
||||
if (!resource()->has_encoded_data()) {
|
||||
if (!resource()->has_encoded_data() && url.to_string() != "about:blank") {
|
||||
load_error_page(url, "No data");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue