1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:48:11 +00:00

LibWeb: Make factory methods of DOM::Document fallible

This commit is contained in:
Kenneth Myhra 2023-02-14 21:49:02 +01:00 committed by Linus Groh
parent 552663a2ba
commit 0d9076c9f5
8 changed files with 17 additions and 24 deletions

View file

@ -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);