mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibWeb: Paper over a VERIFY() crash in ResourceLoader for now
This commit is contained in:
parent
0795311356
commit
c964a6b548
Notes:
sideshowbarker
2024-07-17 08:52:26 +09:00
Author: https://github.com/awesomekling
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