mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Give NavigationParams a constructor
This allows for NavigationParams to hold non-default constructable types.
This commit is contained in:
parent
766cbf4937
commit
0d905b1846
Notes:
github-actions[bot]
2025-06-17 18:55:41 +00:00
Author: https://github.com/shannonbooth
Commit: 0d905b1846
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5094
Reviewed-by: https://github.com/gmta ✅
4 changed files with 107 additions and 66 deletions
|
@ -76,7 +76,40 @@ struct NavigationParams : GC::Cell {
|
|||
// a user navigation involvement used when obtaining a browsing context for the new Document
|
||||
UserNavigationInvolvement user_involvement;
|
||||
|
||||
protected:
|
||||
void visit_edges(Visitor& visitor) override;
|
||||
|
||||
NavigationParams(
|
||||
Optional<String> id,
|
||||
GC::Ptr<Navigable> navigable,
|
||||
GC::Ptr<Fetch::Infrastructure::Request> request,
|
||||
GC::Ptr<Fetch::Infrastructure::Response> response,
|
||||
GC::Ptr<Fetch::Infrastructure::FetchController> fetch_controller,
|
||||
Function<void(DOM::Document&)> commit_early_hints,
|
||||
OpenerPolicyEnforcementResult coop_enforcement_result,
|
||||
Fetch::Infrastructure::Request::ReservedClientType reserved_environment,
|
||||
URL::Origin origin,
|
||||
GC::Ptr<PolicyContainer> policy_container,
|
||||
SandboxingFlagSet final_sandboxing_flag_set,
|
||||
OpenerPolicy opener_policy,
|
||||
Optional<URL::URL> about_base_url,
|
||||
UserNavigationInvolvement user_involvement)
|
||||
: id(move(id))
|
||||
, navigable(navigable)
|
||||
, request(request)
|
||||
, response(response)
|
||||
, fetch_controller(fetch_controller)
|
||||
, commit_early_hints(move(commit_early_hints))
|
||||
, coop_enforcement_result(move(coop_enforcement_result))
|
||||
, reserved_environment(reserved_environment)
|
||||
, origin(move(origin))
|
||||
, policy_container(policy_container)
|
||||
, final_sandboxing_flag_set(final_sandboxing_flag_set)
|
||||
, opener_policy(opener_policy)
|
||||
, about_base_url(move(about_base_url))
|
||||
, user_involvement(user_involvement)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#non-fetch-scheme-navigation-params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue