mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
LibWeb: Give NonFetchSchemeNavigationParams a constructor
This commit is contained in:
parent
0d905b1846
commit
de79eb4410
Notes:
github-actions[bot]
2025-06-17 18:55:34 +00:00
Author: https://github.com/shannonbooth
Commit: de79eb4410
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5094
Reviewed-by: https://github.com/gmta ✅
2 changed files with 35 additions and 18 deletions
|
@ -140,6 +140,25 @@ struct NonFetchSchemeNavigationParams : JS::Cell {
|
|||
// a user navigation involvement used when obtaining a browsing context for the new Document (if one is created)
|
||||
UserNavigationInvolvement user_involvement;
|
||||
|
||||
protected:
|
||||
NonFetchSchemeNavigationParams(
|
||||
Optional<String> id,
|
||||
GC::Ptr<Navigable> navigable,
|
||||
URL::URL url,
|
||||
SandboxingFlagSet target_snapshot_sandboxing_flags,
|
||||
bool source_snapshot_has_transient_activation,
|
||||
URL::Origin initiator_origin,
|
||||
UserNavigationInvolvement user_involvement)
|
||||
: id(move(id))
|
||||
, navigable(navigable)
|
||||
, url(move(url))
|
||||
, target_snapshot_sandboxing_flags(target_snapshot_sandboxing_flags)
|
||||
, source_snapshot_has_transient_activation(source_snapshot_has_transient_activation)
|
||||
, initiator_origin(move(initiator_origin))
|
||||
, user_involvement(user_involvement)
|
||||
{
|
||||
}
|
||||
|
||||
void visit_edges(Visitor& visitor) override;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue