зеркало из https://github.com/mozilla/pjs.git
Bug 120224 - make "Use XBL Forms" pref actually work if you set it in your profile, instead of all.js. r=ben, sr=waterson.
This commit is contained in:
Родитель
851098e320
Коммит
f81ed4d10d
|
@ -3199,8 +3199,13 @@ NS_IMETHODIMP nsChromeRegistry::Observe(nsISupports *aSubject, const char *aTopi
|
|||
}
|
||||
}
|
||||
else if (!nsCRT::strcmp("profile-after-change", aTopic)) {
|
||||
if (!mProfileInitialized)
|
||||
if (!mProfileInitialized) {
|
||||
nsCOMPtr<nsIPref> prefService(do_GetService(kPrefServiceCID));
|
||||
if (prefService)
|
||||
prefService->GetBoolPref(kUseXBLFormsPref, &mUseXBLForms);
|
||||
|
||||
rv = LoadProfileDataSource();
|
||||
}
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
|
|
@ -3199,8 +3199,13 @@ NS_IMETHODIMP nsChromeRegistry::Observe(nsISupports *aSubject, const char *aTopi
|
|||
}
|
||||
}
|
||||
else if (!nsCRT::strcmp("profile-after-change", aTopic)) {
|
||||
if (!mProfileInitialized)
|
||||
if (!mProfileInitialized) {
|
||||
nsCOMPtr<nsIPref> prefService(do_GetService(kPrefServiceCID));
|
||||
if (prefService)
|
||||
prefService->GetBoolPref(kUseXBLFormsPref, &mUseXBLForms);
|
||||
|
||||
rv = LoadProfileDataSource();
|
||||
}
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
|
Загрузка…
Ссылка в новой задаче