diff options
-rw-r--r-- | embed/mozilla/EphyUtils.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/embed/mozilla/EphyUtils.cpp b/embed/mozilla/EphyUtils.cpp index 07aa4ceed..c0b7dbda9 100644 --- a/embed/mozilla/EphyUtils.cpp +++ b/embed/mozilla/EphyUtils.cpp @@ -171,6 +171,9 @@ EphyUtils::ConvertUTF16toUTF8 (const PRUnichar *aText, PRBool EphyJSUtils::IsCalledFromScript () { +#if 1 + return PR_FALSE; +#else nsresult rv; nsCOMPtr<nsIXPConnect> xpc(do_GetService(nsIXPConnect::GetCID(), &rv)); NS_ENSURE_SUCCESS (rv, PR_FALSE); @@ -180,6 +183,7 @@ EphyJSUtils::IsCalledFromScript () NS_ENSURE_SUCCESS(rv, PR_FALSE); return nsnull != ncc; +#endif } /* NOTE: Only call this when we're SURE that we're called directly from JS! */ |