Bug 700678 - Exit full screen mode when the app goes into the background.r=margaret

This commit is contained in:
pushkarsingh 2012-11-01 09:43:47 -07:00
Родитель cf4f813325
Коммит a2217aa76c
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -6586,6 +6586,10 @@ var ActivityObserver = {
let isForeground = false let isForeground = false
switch (aTopic) { switch (aTopic) {
case "application-background" : case "application-background" :
let doc = BrowserApp.selectedTab.browser.contentDocument;
if (doc.mozFullScreen) {
doc.mozCancelFullScreen();
}
isForeground = false; isForeground = false;
break; break;
case "application-foreground" : case "application-foreground" :