235380 - firefox should set itself as default browser only for the current user. Change Windows Shell Service to add an additional option - whether to set default browser for all users or just the current user. Also make the code read out of HKCU instead of HKLM.

This commit is contained in:
ben@bengoodger.com
2004-06-30 20:27:30 +00:00
parent 6d574f320a
commit e4f0d3b5d8
9 changed files with 92 additions and 48 deletions

View File

@@ -70,7 +70,7 @@ nsSetDefaultBrowser.prototype = {
// First, get winhooks service.
var shell = Components.classes["@mozilla.org/browser/shell-service;1"]
.getService(Components.interfaces.nsIShellService);
shell.isDefaultBrowser = true;
shell.setDefaultBrowser(true, true);
// Now, get the cmd line service.
var cmdLineService = Components.classes[ "@mozilla.org/appshell/commandLineService;1" ]