make sure the default browser check doesn't incorrectly report status

git-svn-id: svn://10.0.0.236/trunk@153737 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ben%bengoodger.com 2004-03-09 06:51:27 +00:00
parent bc6dd3a017
commit 59d2fbdbd0

View File

@ -218,7 +218,7 @@ function checkNow()
const IPS = Components.interfaces.nsIPromptService;
var psvc = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
.getService(IPS);
// if (!shell.isDefaultBrowser(false)) {
if (!shell.isDefaultBrowser(false)) {
promptMessage = shellBundle.getFormattedString("setDefaultBrowserMessage",
[brandShortName]);
var rv = psvc.confirmEx(window, promptTitle, promptMessage,
@ -227,12 +227,11 @@ function checkNow()
null, null, null, null, { });
if (rv == 0)
shell.setDefaultBrowser(true);
/*
}
else {
promptMessage = shellBundle.getFormattedString("alreadyDefaultBrowser",
[brandShortName]);
psvc.alert(window, promptTitle, promptMessage);
}*/
}
}
#endif