diff options
author | Andreas Kling <kling@serenityos.org> | 2022-07-13 22:49:25 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-17 14:11:36 +0200 |
commit | c964a6b548e6b74c413d43b327b02cc5ef2542b8 (patch) | |
tree | f15c862cf1cc39c6ad3c36331dd5b75a296799bf /Userland | |
parent | 07953113565884b08445ac3968825c21c3d7f10b (diff) | |
download | serenity-c964a6b548e6b74c413d43b327b02cc5ef2542b8.zip |
LibWeb: Paper over a VERIFY() crash in ResourceLoader for now
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp b/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp index f3de86c899..98101888d8 100644 --- a/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp +++ b/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp @@ -216,6 +216,8 @@ void ResourceLoader::load(LoadRequest& request, Function<void(ReadonlyBytes, Has if (request.page().has_value()) m_page = request.page().value(); + if (!m_page.has_value()) + return; VERIFY(m_page.has_value()); auto file_ref = make_ref_counted<FileRequest>(url.path()); file_ref->on_file_request_finish = [this, success_callback = move(success_callback), error_callback = move(error_callback), log_success, log_failure, request, file_ref](ErrorOr<i32> file_or_error) { |