always use about dialog, not silly webpage.
git-svn-id: svn://10.0.0.236/trunk@118423 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
6a9fcc9816
commit
a15273e3ec
@ -238,19 +238,7 @@ function openTopWin( url )
|
||||
|
||||
function goAboutDialog()
|
||||
{
|
||||
var defaultAboutState = false;
|
||||
try {
|
||||
var pref = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch);
|
||||
defaultAboutState = pref.getBoolPref("browser.show_about_as_stupid_modal_window");
|
||||
}
|
||||
catch(e) {
|
||||
defaultAboutState = false;
|
||||
}
|
||||
if( defaultAboutState )
|
||||
window.openDialog("chrome://global/content/about.xul", "About", "modal,chrome,resizable=yes,height=450,width=550");
|
||||
else
|
||||
window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", 'about:' );
|
||||
window.openDialog("chrome://global/content/about.xul", "About", "modal,chrome,resizable=yes,height=450,width=550");
|
||||
}
|
||||
|
||||
// update menu items that rely on focus
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user