Backed out changeset 6daf4f561843 (bug 1495303)for failing web-platform tests on /payment-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html

This commit is contained in:
arthur.iakab
2018-10-01 14:51:26 +03:00
parent c35d6c2114
commit dfe7946605
13 changed files with 54 additions and 38 deletions

View File

@@ -174,8 +174,7 @@ HTMLIFrameElement::AfterSetAttr(int32_t aNameSpaceID, nsAtom* aName,
}
if ((aName == nsGkAtoms::allow ||
aName == nsGkAtoms::src ||
aName == nsGkAtoms::sandbox ||
aName == nsGkAtoms::allowpaymentrequest) &&
aName == nsGkAtoms::sandbox) &&
StaticPrefs::dom_security_featurePolicy_enabled()) {
RefreshFeaturePolicy();
}
@@ -308,12 +307,8 @@ HTMLIFrameElement::RefreshFeaturePolicy()
mFeaturePolicy->InheritPolicy(OwnerDoc()->Policy());
if (AllowPaymentRequest()) {
mFeaturePolicy->MaybeSetAllowedPolicy(NS_LITERAL_STRING("payment"));
}
// TODO: https://wicg.github.io/feature-policy/#process-feature-policy-attributes
// requires to check allowfullscreen, and allowusermediarequest
// requires to check allowfullscreen, allowpaymentrequest and allowusermediarequest
}
} // namespace dom