epiphany r7963 - trunk/embed/mozilla



Author: chpe
Date: Sun Feb 17 21:03:03 2008
New Revision: 7963
URL: http://svn.gnome.org/viewvc/epiphany?rev=7963&view=rev

Log:
Comment this out; it's unreliable

Modified:
   trunk/embed/mozilla/EphyUtils.cpp

Modified: trunk/embed/mozilla/EphyUtils.cpp
==============================================================================
--- trunk/embed/mozilla/EphyUtils.cpp	(original)
+++ trunk/embed/mozilla/EphyUtils.cpp	Sun Feb 17 21:03:03 2008
@@ -171,6 +171,9 @@
 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 @@
 	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! */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]