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:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user