Fix for tabbrowser not being localizable as well as fixes to expose Closing of tabs via CTRL+W and the top-level menus. r=jag, sr=jst

This commit is contained in:
hyatt%netscape.com 2006-09-14 06:00:36 +00:00
Родитель ca20d126e0
Коммит 0584c25d36
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -895,7 +895,7 @@ function BrowserSetForcedDetector()
getBrowser().documentCharsetInfo.forcedDetector = true;
}
function BrowserClose()
function BrowserCloseTabOrWindow()
{
var browser = getBrowser();
if (browser && browser.localName == 'tabbrowser' && browser.mTabContainer.childNodes.length > 1) {
@ -904,6 +904,11 @@ function BrowserClose()
return;
}
BrowserCloseWindow();
}
function BrowserCloseWindow()
{
// This code replicates stuff in Shutdown(). It is here because
// window.screenX and window.screenY have real values. We need
// to fix this eventually but by replicating the code here, we