nsCOMPtr<nsIFileSpec> fileSpec;
nsCOMPtr<nsIInputStream> inStr; char *readBuf; PRInt64 llFileSize; PRUint32 fileSize;
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;        }