LibWeb: Rename 'cross-origin opener policy' to 'opener policy'

This commit is contained in:
Julius Elshoff 2024-09-18 19:48:22 +02:00 committed by Sam Atkins
commit de31ea5852
Notes: github-actions[bot] 2024-09-24 11:31:19 +00:00
11 changed files with 75 additions and 75 deletions

View file

@ -0,0 +1,36 @@
/*
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibURL/URL.h>
#include <LibWeb/HTML/CrossOrigin/OpenerPolicy.h>
#include <LibWeb/HTML/Origin.h>
namespace Web::HTML {
// https://html.spec.whatwg.org/multipage/origin.html#coop-enforcement-result
struct OpenerPolicyEnforcementResult {
// A boolean needs a browsing context group switch, initially false.
bool needs_a_browsing_context_group_switch { false };
// A boolean would need a browsing context group switch due to report-only, initially false.
bool would_need_a_browsing_context_group_switch_due_to_report_only { false };
// A URL url.
URL::URL url;
// An origin origin.
Origin origin;
// An opener policy.
OpenerPolicy opener_policy;
// A boolean current context is navigation source.
bool current_context_is_navigation_source { false };
};
}