Bug 1169754 - Persist state that Firefox was a user's default browser. r=dolske

This commit is contained in:
Jared Wein 2015-05-29 12:48:00 +02:00
parent 3e6f7719e7
commit d2fd9f7821
2 changed files with 3 additions and 0 deletions

View File

@ -272,6 +272,7 @@ pref("general.autoScroll", true);
// At startup, check if we're the default browser and prompt user if not.
pref("browser.shell.checkDefaultBrowser", true);
pref("browser.shell.shortcutFavicons",true);
pref("browser.shell.isSetAsDefaultBrowser", false);
// 0 = blank, 1 = home (browser.startup.homepage), 2 = last visited page, 3 = resume previous browser session
// The behavior of option 3 is detailed at: http://wiki.mozilla.org/Session_Restore

View File

@ -1113,6 +1113,8 @@ BrowserGlue.prototype = {
}
catch (ex) { /* Don't break the default prompt if telemetry is broken. */ }
Services.setBoolPref("browser.shell.isSetAsDefaultBrowser", isDefault);
if (shouldCheck && !isDefault && !willRecoverSession) {
Services.tm.mainThread.dispatch(function() {
DefaultBrowserCheck.prompt(RecentWindow.getMostRecentBrowserWindow());