mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 210639 Confirm tab close ignores "Close Window"
patch by riceman+bmo@mail.rit.edu r=neil sr=jag
This commit is contained in:
parent
bddd5e070b
commit
4087c0899c
@ -1247,6 +1247,13 @@ function BrowserCloseTabOrWindow()
|
||||
BrowserCloseWindow();
|
||||
}
|
||||
|
||||
function BrowserTryToCloseWindow()
|
||||
{
|
||||
//give tryToClose a chance to veto if it is defined
|
||||
if (typeof(window.tryToClose) != "function" || window.tryToClose())
|
||||
BrowserCloseWindow();
|
||||
}
|
||||
|
||||
function BrowserCloseWindow()
|
||||
{
|
||||
// This code replicates stuff in Shutdown(). It is here because
|
||||
|
@ -129,7 +129,7 @@
|
||||
<command id="cmd_quit"/>
|
||||
<command id="cmd_close" oncommand="BrowserCloseTabOrWindow()"/>
|
||||
<command id="cmd_closeOtherTabs" oncommand="BrowserCloseOtherTabs()"/>
|
||||
<command id="cmd_closeWindow" oncommand="BrowserCloseWindow()"/>
|
||||
<command id="cmd_closeWindow" oncommand="BrowserTryToCloseWindow()"/>
|
||||
|
||||
<!-- Edit Menu -->
|
||||
<command id="cmd_undo"/>
|
||||
|
Loading…
Reference in New Issue
Block a user