зеркало из https://github.com/mozilla/pjs.git
better error handling from IC, if we can't load the homepage, use about:blank
(bug 245359)
This commit is contained in:
Родитель
897d54d90b
Коммит
843933cad8
|
@ -653,8 +653,12 @@ static void SCProxiesChangedCallback(SCDynamicStoreRef store, CFArrayRef changed
|
|||
if (NS_FAILED(rv) || mode == 1) {
|
||||
// see which home page to use
|
||||
PRBool boolPref;
|
||||
if (NS_SUCCEEDED(mPrefs->GetBoolPref("chimera.use_system_home_page", &boolPref)) && boolPref)
|
||||
return [self getICStringPref:kICWWWHomePage];
|
||||
if (NS_SUCCEEDED(mPrefs->GetBoolPref("chimera.use_system_home_page", &boolPref)) && boolPref) {
|
||||
NSString* homePage = [self getICStringPref:kICWWWHomePage];
|
||||
if (!homePage)
|
||||
homePage = @"about:blank";
|
||||
return homePage;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIPrefBranch> prefBranch = do_QueryInterface(mPrefs);
|
||||
if (!prefBranch) return @"about:blank";
|
||||
|
|
Загрузка…
Ссылка в новой задаче