Bug 1149000 - r=mfinkle, a=sylvestre
authorKartikaya Gupta <kgupta@mozilla.com>
Tue, 01 Sep 2015 13:17:25 -0400
changeset 289285 11d1409af756edc9b3c7c45dd9184e0bafb5d481
parent 289284 2764f9334f34cf90b44aab78d51bd7880ed07188
child 289286 940bf65a058dd7af20e45b6dd6e289629991e91a
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, sylvestre
bugs1149000
milestone42.0a2
Bug 1149000 - r=mfinkle, a=sylvestre
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -1297,16 +1297,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);
   },
 
   /**