if (NS_FAILED(rv)) return nsJSUtils::nsReportError(aContext, aObj, rv);
if (NS_FAILED(rv)) { nsJSUtils::nsReportError(aContext, aObj, rv); return rv; }
CheckHrefAccess(JSContext *aContext, JSObject *aObj, PRBool isWrite) {  nsresult rv;  NS_WITH_SERVICE(nsIScriptSecurityManager, secMan,                  NS_SCRIPTSECURITYMANAGER_PROGID, &rv);  if (NS_FAILED(rv))    rv = NS_ERROR_DOM_SECMAN_ERR;  else    rv = secMan->CheckScriptAccess(aContext, aObj, NS_DOM_PROP_LOCATION_HREF,                                   isWrite);  if (NS_FAILED(rv))    return nsJSUtils::nsReportError(aContext, aObj, rv);  return NS_OK;}