mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
always use about dialog, not silly webpage.
This commit is contained in:
parent
f76912a6ef
commit
83634cf633
@ -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…
Reference in New Issue
Block a user