diff --git a/mobile/chrome/content/browser.js b/mobile/chrome/content/browser.js index fbbf5faf398..c2cb9f6fea0 100644 --- a/mobile/chrome/content/browser.js +++ b/mobile/chrome/content/browser.js @@ -1644,7 +1644,6 @@ nsBrowserAccess.prototype = { if (isExternal) tab.closeOnExit = true; browser = tab.browser; - BrowserUI.hidePanel(); } else if (aWhere == OPEN_APPTAB) { Browser.tabs.forEach(function(aTab) { if ("appURI" in aTab.browser && aTab.browser.appURI.spec == aURI.spec) { @@ -1662,7 +1661,6 @@ nsBrowserAccess.prototype = { // Just use the existing browser, but return null to keep the system from trying to load the URI again browser = null; } - BrowserUI.hidePanel(); } else { // OPEN_CURRENTWINDOW and illegal values browser = Browser.selectedBrowser; } @@ -1679,7 +1677,10 @@ nsBrowserAccess.prototype = { browser.focus(); } catch(e) { } + // We are loading web content into this window, so make sure content is visible + BrowserUI.hidePanel(); BrowserUI.closeAutoComplete(); + Browser.hideSidebars(); return browser; },