зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
ca20d126e0
Коммит
0584c25d36
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче