mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +00:00
LibWeb: Add navigable property in NavigationParams
This commit is contained in:
parent
0c919718ae
commit
38a2d5ead3
2 changed files with 6 additions and 0 deletions
|
@ -338,6 +338,7 @@ void FrameLoader::load_html(StringView html, const AK::URL& url)
|
|||
.coop_enforcement_result = HTML::CrossOriginOpenerPolicyEnforcementResult {},
|
||||
.reserved_environment = {},
|
||||
.browsing_context = browsing_context(),
|
||||
.navigable = nullptr,
|
||||
};
|
||||
auto document = DOM::Document::create_and_initialize(DOM::Document::Type::HTML, "text/html", move(navigation_params)).release_value_but_fixme_should_propagate_errors();
|
||||
browsing_context().set_active_document(document);
|
||||
|
@ -463,6 +464,7 @@ void FrameLoader::resource_did_load()
|
|||
.coop_enforcement_result = HTML::CrossOriginOpenerPolicyEnforcementResult {},
|
||||
.reserved_environment = {},
|
||||
.browsing_context = browsing_context(),
|
||||
.navigable = nullptr,
|
||||
};
|
||||
auto document = DOM::Document::create_and_initialize(DOM::Document::Type::HTML, "text/html", move(navigation_params)).release_value_but_fixme_should_propagate_errors();
|
||||
document->set_url(url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue