Bug 639794 - Opening a webpage from an external app should hide sidebars and panels [r=mbrubeck]

This commit is contained in:
Mark Finkle 2011-08-13 20:11:32 -04:00
Родитель d53a08d66f
Коммит 32c4e30383
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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;
},