mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Make factory methods of DOM::Document fallible
This commit is contained in:
parent
552663a2ba
commit
0d9076c9f5
Notes:
sideshowbarker
2024-07-17 09:49:33 +09:00
Author: https://github.com/kennethmyhra
Commit: 0d9076c9f5
Pull-request: https://github.com/SerenityOS/serenity/pull/17491
Reviewed-by: https://github.com/linusg ✅
8 changed files with 17 additions and 24 deletions
|
@ -168,7 +168,7 @@ JS::NonnullGCPtr<BrowsingContext> BrowsingContext::create_a_new_browsing_context
|
|||
// load timing info is loadTimingInfo,
|
||||
// FIXME: navigation id is null,
|
||||
// and which is ready for post-load tasks.
|
||||
auto document = DOM::Document::create(window->realm());
|
||||
auto document = DOM::Document::create(window->realm()).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
// Non-standard
|
||||
document->set_window({}, *window);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue