mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-27 10:50:35 +00:00
Bug 782852 - Assume fullscreen/pointer lock is approved hwhen full-screen-api.approval-required pref is false. r=smaug
This commit is contained in:
parent
0684d004cb
commit
84222bb1d7
@ -9124,6 +9124,7 @@ nsDocument::RequestFullScreen(Element* aElement,
|
||||
// trusted and so are automatically approved.
|
||||
if (!mIsApprovedForFullscreen) {
|
||||
mIsApprovedForFullscreen =
|
||||
!Preferences::GetBool("full-screen-api.approval-required") ||
|
||||
NodePrincipal()->GetAppStatus() >= nsIPrincipal::APP_STATUS_INSTALLED ||
|
||||
nsContentUtils::IsSitePermAllow(NodePrincipal(), "fullscreen");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user