mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 12:27:35 +00:00
LibWeb: Paper over a VERIFY() crash in ResourceLoader for now
This commit is contained in:
parent
0795311356
commit
c964a6b548
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue