зеркало из 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
|
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" :
|
||||||
|
|
Загрузка…
Ссылка в новой задаче