зеркало из https://github.com/mozilla/pjs.git
178291 - using window.fullScreen causes scripts to stop.
r=mstoltz sr=jst
This commit is contained in:
Родитель
c815579255
Коммит
2cb5aeb54c
|
@ -1893,8 +1893,10 @@ GlobalWindowImpl::GetLength(PRUint32* aLength)
|
|||
|
||||
NS_IMETHODIMP GlobalWindowImpl::SetFullScreen(PRBool aFullScreen)
|
||||
{
|
||||
if (aFullScreen == mFullScreen)
|
||||
// Only chrome can change our fullScreen mode.
|
||||
if (aFullScreen == mFullScreen || !IsCallerChrome()) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// SetFullScreen needs to be called on the root window, so get that
|
||||
// via the DocShell tree, and if we are not already the root,
|
||||
|
|
|
@ -311,7 +311,6 @@ pref("capability.policy.default.Window.Components", "allAccess");
|
|||
pref("capability.policy.default.Window.document", "allAccess");
|
||||
pref("capability.policy.default.Window.focus", "allAccess");
|
||||
pref("capability.policy.default.Window.frames", "allAccess");
|
||||
pref("capability.policy.default.Window.fullScreen", "noAccess");
|
||||
pref("capability.policy.default.Window.history", "allAccess");
|
||||
pref("capability.policy.default.Window.length", "allAccess");
|
||||
pref("capability.policy.default.Window.location", "allAccess");
|
||||
|
|
Загрузка…
Ссылка в новой задаче