Bug 299713 - [Mac] If there's an open about window, activate it on Firefox->About Mozilla Firefox. r=mconnor, a=bsmedberg

git-svn-id: svn://10.0.0.236/trunk@175647 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mozilla.mano%sent.com
2005-07-05 21:39:05 +00:00
parent 44d7766b63
commit d9433ec456
2 changed files with 12 additions and 2 deletions

View File

@@ -53,6 +53,7 @@
<dialog xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="aboutDialog"
windowtype="Browser:About"
onload="init(event);" onunload="uninit(event);"
#ifdef XP_MACOSX
buttons="extra2"

View File

@@ -397,8 +397,17 @@ function isBidiEnabled() {
function openAboutDialog()
{
#ifdef XP_MACOSX
// XXXmano: define minimizable=no although it does nothing on OS X (see Bug 287162); remove this comment once Bug 287162 is fixed...
window.open("chrome://browser/content/aboutDialog.xul", "About", "centerscreen,chrome,resizable=no, minimizable=no");
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator);
var win = wm.getMostRecentWindow("Browser:About");
if (win)
win.focus();
else {
// XXXmano: define minimizable=no although it does nothing on OS X
// (see Bug 287162); remove this comment once Bug 287162 is fixed...
window.open("chrome://browser/content/aboutDialog.xul", "About",
"centerscreen,chrome,resizable=no, minimizable=no");
}
#else
window.openDialog("chrome://browser/content/aboutDialog.xul", "About", "modal,centerscreen,chrome,resizable=no");
#endif