зеркало из https://github.com/mozilla/gecko-dev.git
Bug 700678 - Exit full screen mode when the app goes into the background.r=margaret
This commit is contained in:
Родитель
cf4f813325
Коммит
a2217aa76c
|
@ -6586,6 +6586,10 @@ var ActivityObserver = {
|
|||
let isForeground = false
|
||||
switch (aTopic) {
|
||||
case "application-background" :
|
||||
let doc = BrowserApp.selectedTab.browser.contentDocument;
|
||||
if (doc.mozFullScreen) {
|
||||
doc.mozCancelFullScreen();
|
||||
}
|
||||
isForeground = false;
|
||||
break;
|
||||
case "application-foreground" :
|
||||
|
|
Загрузка…
Ссылка в новой задаче