rtm+ bug 27187; add code to make Mozilla the 'default browser'; r=ssu@netscape.com; sr=scc@netscape.com

This commit is contained in:
law%netscape.com 2000-10-14 01:58:06 +00:00
parent 9ca655ccc9
commit 06fd6d13eb

View File

@ -474,6 +474,9 @@ function Startup()
setTooltipText("homebutton", homepage); setTooltipText("homebutton", homepage);
initConsoleListener(); initConsoleListener();
// Perform default browser checking.
checkForDefaultBrowser();
} }
@ -2147,3 +2150,15 @@ function URLBarBlurHandler(aEvent)
URLBar.setSelectionRange(0, 0); URLBar.setSelectionRange(0, 0);
} }
} }
// This function gets the "windows hooks" service and has it check its setting
// This will do nothing on platforms other than Windows.
function checkForDefaultBrowser() {
try {
Components
.classes[ "@mozilla.org/winhooks;1"]
.getService( Components.interfaces.nsIWindowsHooks )
.checkSettings( window );
} catch(e) {
}
}