178291 - using window.fullScreen causes scripts to stop.

r=mstoltz sr=jst
This commit is contained in:
caillon%returnzero.com 2002-12-03 06:08:08 +00:00
Родитель c815579255
Коммит 2cb5aeb54c
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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");