Refactor Feature Policy algorithms to more closely resemble spec.
This change restructures the Feature Policy (and proposed Permisssions Policy) construction code to roughly match the algorithms in the specifications. Comments are added to show the correspondence between code and spec. The Feature Policy inherited policy calculation is based on https://www.w3.org/TR/2019/WD-feature-policy-1-20190416/#define-inherited-policy-in-container The code which calculates the proposed Permissions Policy inherited policy is based on https://w3c.github.io/webappsec-permissions-policy/#algo-define-inherited-policy-in-container Change-Id: I6436b41958b6c6175410b9935f48029a04cf34ea Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2460232Reviewed-by:Charlie Hu <chenleihu@google.com> Commit-Queue: Ian Clelland <iclelland@chromium.org> Cr-Commit-Position: refs/heads/master@{#815271}
Showing
Please register or sign in to comment