tree: ddb0e2903ab9de71a34ef1427d76ec47b2e546f0 [path history] [tgz]
  1. BUILD.gn
  2. DEPS
  3. OWNERS
  4. README.md
  5. document_policy_features.json5
  6. document_policy_parser.cc
  7. document_policy_parser.h
  8. document_policy_parser_test.cc
  9. dom_document_policy.h
  10. dom_feature_policy.cc
  11. dom_feature_policy.h
  12. feature_policy.dict
  13. feature_policy.idl
  14. feature_policy_attr_fuzzer.cc
  15. feature_policy_corpus/
  16. feature_policy_features.json5
  17. feature_policy_fuzzer.cc
  18. feature_policy_helper.h
  19. feature_policy_parser.cc
  20. feature_policy_parser.h
  21. feature_policy_parser_delegate.h
  22. feature_policy_test.cc
  23. feature_policy_value.dict
  24. feature_policy_value_corpus/
  25. feature_policy_value_fuzzer.cc
  26. iframe_policy.h
  27. layout_animations_policy.cc
  28. layout_animations_policy.h
  29. policy_test.cc
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).