Bug 720288 - Don't do a default browser check in debug builds. r=gavin

This commit is contained in:
Justin Dolske 2012-01-22 21:07:52 -08:00
parent efb157798e
commit 4475f42cbe
2 changed files with 5 additions and 2 deletions

View File

@ -244,8 +244,7 @@ pref("general.autoScroll", false);
pref("general.autoScroll", true);
#endif
// Whether or not the application should check at startup each time if it
// is the default browser.
// At startup, check if we're the default browser and prompt user if not.
pref("browser.shell.checkDefaultBrowser", true);
// 0 = blank, 1 = home (browser.startup.homepage), 2 = last visited page, 3 = resume previous browser session

View File

@ -1554,7 +1554,11 @@ function delayedStartup(isLoadingBlank, mustLoadSidebar) {
// Perform default browser checking (after window opens).
var shell = getShellService();
if (shell) {
#ifdef DEBUG
var shouldCheck = false;
#else
var shouldCheck = shell.shouldCheckDefaultBrowser;
#endif
var willRecoverSession = false;
try {
var ss = Cc["@mozilla.org/browser/sessionstartup;1"].