mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 18:51:28 +00:00
rtm+ bug 27187; add code to make Mozilla the 'default browser'; r=ssu@netscape.com; sr=scc@netscape.com
This commit is contained in:
parent
9ca655ccc9
commit
06fd6d13eb
@ -474,6 +474,9 @@ function Startup()
|
||||
setTooltipText("homebutton", homepage);
|
||||
|
||||
initConsoleListener();
|
||||
|
||||
// Perform default browser checking.
|
||||
checkForDefaultBrowser();
|
||||
}
|
||||
|
||||
|
||||
@ -2147,3 +2150,15 @@ function URLBarBlurHandler(aEvent)
|
||||
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) {
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user