зеркало из https://github.com/mozilla/gecko-dev.git
Bug 591866 - channel-prefs.js should not be in omni.jar, r=bsmedberg a=blocking-beta5
This commit is contained in:
Родитель
81aaeb3ca6
Коммит
5e35786794
|
@ -626,7 +626,6 @@ xpicleanup@BIN_SUFFIX@
|
|||
components/WebContentConverter.js
|
||||
defaults/autoconfig/platform.js
|
||||
defaults/autoconfig/prefcalls.js
|
||||
defaults/pref/channel-prefs.js
|
||||
defaults/pref/firefox-branding.js
|
||||
defaults/pref/firefox.js
|
||||
defaults/pref/firefox-l10n.js
|
||||
|
|
|
@ -784,6 +784,24 @@ static nsresult pref_InitAppDefaultsFromOmnijar()
|
|||
NS_WARNING("Error parsing preferences.");
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIFile> file;
|
||||
// Bug 591866 - channel-prefs.js should not be in omni.jar
|
||||
rv = NS_GetSpecialDirectory(NS_APP_PREF_DEFAULTS_50_DIR, getter_AddRefs(file));
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_WARNING("Error getting default prefs dir");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
rv = file->AppendNative(NS_LITERAL_CSTRING("channel-prefs.js"));
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_WARNING("Error setting channel-prefs.js path");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
rv = openPrefFile(file);
|
||||
if (NS_FAILED(rv))
|
||||
NS_WARNING("Error reading channel-prefs.js");
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -229,6 +229,7 @@ OMNIJAR_FILES = \
|
|||
|
||||
NON_OMNIJAR_FILES = \
|
||||
chrome/icons/\* \
|
||||
defaults/pref/channel-prefs.js \
|
||||
res/cursors/\* \
|
||||
res/MainMenu.nib/\* \
|
||||
$(NULL)
|
||||
|
|
Загрузка…
Ссылка в новой задаче