PolicyContainers.h 949 B

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