tree: d35e9c9efc57cbe336d6ad000df612610b234586 [path history] [tgz]
  1. BUILD.gn
  2. DEPS
  3. document_policy.h
  4. feature_policy.cc
  5. feature_policy.h
  6. feature_policy_fuzzer.cc
  7. feature_policy_test.cc
  8. iframe_policy.h
  9. layout_animations_policy.cc
  10. layout_animations_policy.h
  11. OWNERS
  12. policy.cc
  13. policy.h
  14. policy.idl
  15. policy_test.cc
  16. README.md
third_party/blink/renderer/core/feature_policy/README.md

This directory contains the renderer-specific portions of the Feature Policy API.

This includes:

  • The parser for the HTTP Feature-Policy header and the iframe allow attribute.

  • Helpers for manipulating the parsed declarations.

  • Implementation of the document.policy and iframe.policy interfaces.

Other feature policy resources

  • The core feature policy algorithms can be found in /common/feature\_policy/.

  • The feature list enum is found in /public/mojom/feature\_policy/.

  • The recommended API for checking whether features should be enabled or not is Document::IsFeatureEnabled() (or SecurityContext::IsFeatureEnabled in a non- document context).