PolicyContainers.h 1.1 KB

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/ReferrerPolicy/ReferrerPolicy.h>
  8. namespace Web::HTML {
  9. // https://html.spec.whatwg.org/multipage/origin.html#policy-container
  10. // A policy container is a struct containing policies that apply to a Document, a WorkerGlobalScope, or a WorkletGlobalScope. It has the following items:
  11. struct PolicyContainer {
  12. // https://html.spec.whatwg.org/multipage/origin.html#policy-container-csp-list
  13. // FIXME: A CSP list, which is a CSP list. It is initially empty.
  14. // https://html.spec.whatwg.org/multipage/origin.html#policy-container-embedder-policy
  15. // FIXME: An embedder policy, which is an embedder policy. It is initially a new embedder policy.
  16. // https://html.spec.whatwg.org/multipage/origin.html#policy-container-referrer-policy
  17. // A referrer policy, which is a referrer policy. It is initially the default referrer policy.
  18. ReferrerPolicy::ReferrerPolicy referrer_policy { ReferrerPolicy::DEFAULT_REFERRER_POLICY };
  19. };
  20. }