From a2217aa76c6234723f78d9cc5b1408a160853248 Mon Sep 17 00:00:00 2001 From: pushkarsingh Date: Thu, 1 Nov 2012 09:43:47 -0700 Subject: [PATCH] Bug 700678 - Exit full screen mode when the app goes into the background.r=margaret --- mobile/android/chrome/content/browser.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mobile/android/chrome/content/browser.js b/mobile/android/chrome/content/browser.js index 3e70e3f55967..c8ca1f558df7 100644 --- a/mobile/android/chrome/content/browser.js +++ b/mobile/android/chrome/content/browser.js @@ -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" :