mirror of
https://github.com/RGBCube/serenity
synced 2025-07-03 05:32:13 +00:00
LibWeb: Don't treat erroring subresource loads as success
If a subresource fails to load, we don't care that we got some custom 404 page. The subresource should still be considered failed. This is an ad-hoc solution that unbreaks Acid2. This code will eventually be replaced by fetch mechanisms.
This commit is contained in:
parent
954d660094
commit
20132da88d
3 changed files with 9 additions and 1 deletions
|
@ -212,6 +212,8 @@ bool FrameLoader::load(LoadRequest& request, Type type)
|
|||
return false;
|
||||
}
|
||||
|
||||
request.set_main_resource(true);
|
||||
|
||||
auto& url = request.url();
|
||||
|
||||
if (type == Type::Navigation || type == Type::Reload || type == Type::Redirect) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue