JS_BeginRequest(gMochaContext); rv = openPrefFileSpec(fileSpec, aIsErrorFatal, aVerifyHash, aIsGlobalContext, aSkipFirstLine); JS_EndRequest(gMochaContext);
if (aVerifyHash) {  const int obscure_value = 13; for (PRUint32 i = 0; i < amtRead; i++) readBuf[i] -= obscure_value; }  if (!PREF_EvaluateConfigScript(readBuf, amtRead, nsnull, aIsGlobalContext, PR_TRUE, aSkipFirstLine)) { rv = NS_ERROR_FAILURE; if (aIsErrorFatal)   gErrorOpeningUserPrefs = PR_TRUE; }
static nsresult openPrefFile(nsIFile* aFile, PRBool aIsErrorFatal, PRBool aVerifyHash,                                     PRBool aIsGlobalContext, PRBool aSkipFirstLine){  nsCOMPtr<nsIFileSpec> fileSpec;  nsresult rv;  rv = nsIFileToFileSpec(aFile, getter_AddRefs(fileSpec));  if (NS_SUCCEEDED(rv)) {    JS_BeginRequest(gMochaContext);    rv = openPrefFileSpec(fileSpec, aIsErrorFatal, aVerifyHash, aIsGlobalContext, aSkipFirstLine);    JS_EndRequest(gMochaContext);  }  return rv;        }