Bug 153324 user.js not loaded if prefs.js doesn't exist.

patch by tranquil@mail.dk r=bnesse sr=alecf
This commit is contained in:
timeless%mac.com 2002-08-12 14:52:32 +00:00
parent d98b057414
commit 24f6d49ed9

View File

@ -180,9 +180,8 @@ NS_IMETHODIMP nsPrefService::ReadUserPrefs(nsIFile *aFile)
nsresult rv;
if (nsnull == aFile) {
rv = UseDefaultPrefFile(); // really should return a value...
if (NS_SUCCEEDED(rv))
UseUserPrefFile();
rv = UseDefaultPrefFile();
UseUserPrefFile();
NotifyServiceObservers(NS_PREFSERVICE_READ_TOPIC_ID);