Bug 729307 - Add full-screen-api.exit-on-deactivate pref. r=dao

This commit is contained in:
Chris Pearce 2012-02-23 10:15:36 +13:00
Родитель 5182c53514
Коммит ccf544f152
2 изменённых файлов: 4 добавлений и 1 удалений

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

@ -4043,7 +4043,9 @@ var FullScreen = {
gBrowser.tabContainer.addEventListener("TabSelect", this.exitDomFullScreen);
// Exit DOM full-screen mode when the browser window loses focus (ALT+TAB, etc).
window.addEventListener("deactivate", this.exitDomFullScreen, true);
if (gPrefService.getBoolPref("full-screen-api.exit-on-deactivate")) {
window.addEventListener("deactivate", this.exitDomFullScreen, true);
}
// Cancel any "hide the toolbar" animation which is in progress, and make
// the toolbar hide immediately.

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

@ -3409,6 +3409,7 @@ pref("full-screen-api.enabled", false);
pref("full-screen-api.allow-trusted-requests-only", true);
pref("full-screen-api.key-input-restricted", true);
pref("full-screen-api.warning.enabled", true);
pref("full-screen-api.exit-on-deactivate", true);
// Time limit, in milliseconds, for nsEventStateManager::IsHandlingUserInput().
// Used to detect long running handlers of user-generated events.