Bug 1495362 - FeaturePolicy: fullscreen, r=smaug
This commit is contained in:
@@ -312,8 +312,12 @@ HTMLIFrameElement::RefreshFeaturePolicy()
|
||||
mFeaturePolicy->MaybeSetAllowedPolicy(NS_LITERAL_STRING("payment"));
|
||||
}
|
||||
|
||||
if (AllowFullscreen()) {
|
||||
mFeaturePolicy->MaybeSetAllowedPolicy(NS_LITERAL_STRING("fullscreen"));
|
||||
}
|
||||
|
||||
// TODO: https://wicg.github.io/feature-policy/#process-feature-policy-attributes
|
||||
// requires to check allowfullscreen, and allowusermediarequest
|
||||
// requires to check allowusermediarequest
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
||||
Reference in New Issue
Block a user