From 4886542b3152b21681caeade8edacd5339d51a2b Mon Sep 17 00:00:00 2001 From: Ehsan Karamad Date: Mon, 15 Apr 2019 09:45:29 -0700 Subject: [PATCH] [ FeaturePolicy ] downloads-without-user-activation The CL implements a new feature policy hidden behind the flag FeaturePolicyForSandbox. The policy is the feature policy counterpart to the sandbox flag 'allow-downloads-without-user-activation'. This policy is used to help migrate sandbox flags implementation on top of feature policies. PA: https://github.com/w3c/webappsec-feature-policy/issues/289 Bug: 812381 Change-Id: I234bb0486313ab350827315843db22525c2ceaac --- feature-policy/feature-policy-for-sandbox/resources/helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feature-policy/feature-policy-for-sandbox/resources/helper.js b/feature-policy/feature-policy-for-sandbox/resources/helper.js index 09a8aa7846cd72..9de8416535613f 100644 --- a/feature-policy/feature-policy-for-sandbox/resources/helper.js +++ b/feature-policy/feature-policy-for-sandbox/resources/helper.js @@ -7,8 +7,8 @@ const ignore_features_for_auxilary_context = ["popups", "scripts"]; // Feature-policies that represent specific sandbox flags. const sandbox_features = [ - "forms", "modals", "orientation-lock", "pointer-lock", "popups", - "presentation", "scripts", "top-navigation"]; + "downloads-without-user-activation", "forms", "modals", "orientation-lock", + "pointer-lock", "popups", "presentation", "scripts", "top-navigation"]; // TODO(ekaramad): Figure out different inheritance requirements for different // policies.