gErrorOpeningUserPrefs = NS_FAILED(rv);
NS_IMETHODIMP nsPref::ReadUserPrefsFrom(nsIFileSpec* inFile)//----------------------------------------------------------------------------------------{    if (mFileSpec == inFile)        return NS_OK;    NS_IF_RELEASE(mFileSpec);    mFileSpec = inFile;    NS_ADDREF(mFileSpec);        gErrorOpeningUserPrefs = PR_FALSE;    if (NS_FAILED(StartUp()))    	return NS_ERROR_FAILURE;	nsresult rv = NS_OK;	JS_BeginRequest(gMochaContext);    if (pref_OpenFileSpec(mFileSpec, PR_TRUE, PR_FALSE, PR_FALSE, PR_TRUE)        != PREF_NOERROR)        rv = NS_ERROR_FAILURE;    JS_EndRequest(gMochaContext);    gErrorOpeningUserPrefs = NS_FAILED(rv);    return rv;} // nsPref::ReadUserPrefsFrom