Add security controls to all plugins, get plugins build for all tier-1
platforms.

Patch by: jat
Review by: amitmanjhi, jaimeyap


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@6085 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/plugins/xpcom/FFSessionHandler.cpp b/plugins/xpcom/FFSessionHandler.cpp
index 2d74fbe..06a4534 100755
--- a/plugins/xpcom/FFSessionHandler.cpp
+++ b/plugins/xpcom/FFSessionHandler.cpp
@@ -24,9 +24,11 @@
 #include "RootedObject.h"
 #include "InvokeMessage.h"
 #include "ServerMethods.h"
+#include "AllowedConnections.h"
 
 #include "jsapi.h"
 #include "nsCOMPtr.h"
+#include "nsStringAPI.h"
 #include "nsIJSContextStack.h"
 #include "nsIPrincipal.h"
 #include "nsServiceManagerUtils.h"
@@ -45,8 +47,9 @@
   }
 
   if (cx == nsnull) {
-    Debug::log(Debug::Error) << "Null context" << Debug::flush;
-  }  
+    // TODO(jat): figure out why this can be null at plugin unload time
+    Debug::log(Debug::Error) << "GWT DMP: Null JS context" << Debug::flush;
+  }
 
   return cx;
 }