Bug 1149000. r=mfinkle
authorKartikaya Gupta <kgupta@mozilla.com>
Tue, 01 Sep 2015 13:17:25 -0400
changeset 260287 33817a41e2e17ee5d86c27048df4feb39a24eda4
parent 260286 bcccb8af005d7d83aecc584709a10c6f3ee032f7
child 260288 aec72f4f3fa82e6e57da1e16a93d38ff33b659a9
push id14971
push userkgupta@mozilla.com
push dateTue, 01 Sep 2015 17:17:52 +0000
treeherderfx-team@33817a41e2e1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs1149000
milestone43.0a1
Bug 1149000. r=mfinkle
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -1289,16 +1289,18 @@ var BrowserApp = {
       Cu.reportError("Error trying to select tab (tab doesn't exist)");
       return;
     }
 
     // There's nothing to do if the tab is already selected
     if (aTab == this.selectedTab)
       return;
 
+    this.selectedBrowser.contentDocument.mozCancelFullScreen();
+
     let message = {
       type: "Tab:Select",
       tabID: aTab.id
     };
     Messaging.sendRequest(message);
   },
 
   /**