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
git-svn-id: svn://10.0.0.236/trunk@210938 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d31b61416d
commit
e343df6406
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user