From 84222bb1d7dd292c0a29ee050baff52087353cf9 Mon Sep 17 00:00:00 2001 From: Chris Pearce Date: Fri, 17 Aug 2012 12:47:37 +1200 Subject: [PATCH] Bug 782852 - Assume fullscreen/pointer lock is approved hwhen full-screen-api.approval-required pref is false. r=smaug --- content/base/src/nsDocument.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/content/base/src/nsDocument.cpp b/content/base/src/nsDocument.cpp index 8f200bb26acd..8e34b3f19901 100644 --- a/content/base/src/nsDocument.cpp +++ b/content/base/src/nsDocument.cpp @@ -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"); }