tree: 58481e1701febcd00591eaa43360d32d430ad107 [path history] [tgz]
  1. BUILD.gn
  2. DEPS
  3. OWNERS
  4. README.md
  5. document_policy.h
  6. feature_policy.cc
  7. feature_policy.h
  8. feature_policy_fuzzer.cc
  9. feature_policy_test.cc
  10. iframe_policy.h
  11. layout_animations_policy.cc
  12. layout_animations_policy.h
  13. policy.cc
  14. policy.h
  15. policy.idl
  16. 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).