tree: e95f35747e79cba524501f55d9ebb3b0b2bc98e8 [path history] [tgz]
  1. document_policy_corpus/
  2. feature_policy_corpus/
  3. permissions_policy_corpus/
  4. BUILD.gn
  5. DEPS
  6. document_policy.dict
  7. document_policy_features.json5
  8. document_policy_fuzzer.cc
  9. document_policy_parser.cc
  10. document_policy_parser.h
  11. document_policy_parser_test.cc
  12. dom_feature_policy.cc
  13. dom_feature_policy.h
  14. feature_policy.dict
  15. feature_policy.idl
  16. feature_policy_attr_fuzzer.cc
  17. feature_policy_features.json5
  18. feature_policy_fuzzer.cc
  19. feature_policy_parser.cc
  20. feature_policy_parser.h
  21. feature_policy_test.cc
  22. iframe_policy.h
  23. layout_animations_policy.cc
  24. layout_animations_policy.h
  25. OWNERS
  26. permissions_policy.dict
  27. permissions_policy_fuzzer.cc
  28. policy_helper.h
  29. policy_test.cc
  30. 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).