Bug 1665252 - remove allowpaymentrequest attribute from HTMLIFrameElement r=dom-workers-and-storage-reviewers,smaug,asuth
Differential Revision: https://phabricator.services.mozilla.com/D90505
This commit is contained in:
@@ -171,8 +171,7 @@ nsresult HTMLIFrameElement::AfterSetAttr(int32_t aNameSpaceID, nsAtom* aName,
|
||||
if (aName == nsGkAtoms::allow || aName == nsGkAtoms::src ||
|
||||
aName == nsGkAtoms::srcdoc || aName == nsGkAtoms::sandbox) {
|
||||
RefreshFeaturePolicy(true /* parse the feature policy attribute */);
|
||||
} else if (aName == nsGkAtoms::allowfullscreen ||
|
||||
aName == nsGkAtoms::allowpaymentrequest) {
|
||||
} else if (aName == nsGkAtoms::allowfullscreen) {
|
||||
RefreshFeaturePolicy(false /* parse the feature policy attribute */);
|
||||
}
|
||||
}
|
||||
@@ -296,10 +295,6 @@ void HTMLIFrameElement::RefreshFeaturePolicy(bool aParseAllowAttribute) {
|
||||
}
|
||||
}
|
||||
|
||||
if (AllowPaymentRequest()) {
|
||||
mFeaturePolicy->MaybeSetAllowedPolicy(u"payment"_ns);
|
||||
}
|
||||
|
||||
if (AllowFullscreen()) {
|
||||
mFeaturePolicy->MaybeSetAllowedPolicy(u"fullscreen"_ns);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user