mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-10 02:51:55 +00:00
LibWeb: Avoid copying a URL needlessly during subframe navigation
Noticed a clangd warning for this while looking at a subframe site isolation issue.
This commit is contained in:
parent
2d732b2251
commit
e52c09ad4c
Notes:
github-actions[bot]
2025-04-26 14:17:11 +00:00
Author: https://github.com/trflynn89
Commit: e52c09ad4c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4485
1 changed files with 5 additions and 2 deletions
|
@ -256,11 +256,14 @@ void NavigableContainer::navigate_an_iframe_or_frame(URL::URL url, ReferrerPolic
|
|||
Variant<Empty, String, POSTResource> document_resource = Empty {};
|
||||
if (srcdoc_string.has_value())
|
||||
document_resource = srcdoc_string.value();
|
||||
MUST(m_content_navigable->navigate({ .url = url,
|
||||
|
||||
MUST(m_content_navigable->navigate({
|
||||
.url = move(url),
|
||||
.source_document = document(),
|
||||
.document_resource = document_resource,
|
||||
.history_handling = history_handling,
|
||||
.referrer_policy = referrer_policy }));
|
||||
.referrer_policy = referrer_policy,
|
||||
}));
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/document-sequences.html#destroy-a-child-navigable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue