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:
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user