Fix for issue 3903. Adds a <noscript> tag to our *.html launch files so that we
provide a useful message to the user when JavaScript is turned off or not available.
This includes the html template used by webAppCreator and the Google Plugin for Eclipse.

Review by: rjrjr


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@5852 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java b/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java
index f94b52f..f8a08e7 100644
--- a/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java
+++ b/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java
@@ -381,6 +381,11 @@
     writer.println("</head><body>");
     writer.println("<iframe src=\"javascript:''\" id='__gwt_historyFrame' "
         + "style='position:absolute;width:0;height:0;border:0'></iframe>");
+    writer.println("<noscript>");
+    writer.println("  <b style=\"color: red; border: 1px solid red; padding: 4px;\">");
+    writer.println("    Your web browser must have JavaScript enabled in order for this application to display correctly");
+    writer.println("  </b>");
+    writer.println("</noscript>");
     writer.println("</body></html>");
 
     // Done.
diff --git a/user/src/com/google/gwt/junit/public/junit.html b/user/src/com/google/gwt/junit/public/junit.html
index dd33eec..7f80fc5 100644
--- a/user/src/com/google/gwt/junit/public/junit.html
+++ b/user/src/com/google/gwt/junit/public/junit.html
@@ -56,5 +56,10 @@
 -->
 </script>
 <iframe src="javascript:''" id='__gwt_historyFrame' style='position:absolute;width:0;height:0;border:0'></iframe>
+<noscript>
+  <b style="color: red; border: 1px solid red; padding: 4px;">
+    Your web browser must have JavaScript enabled in order for this application to display correctly
+  </b>
+</noscript>
 </body>
 </html>
diff --git a/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc b/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc
index bb0d8c3..c284086 100644
--- a/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc
+++ b/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc
@@ -37,6 +37,13 @@
 
     <!-- OPTIONAL: include this if you want history support -->
     <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
+    
+    <!-- RECOMMENDED if your web app will not function without JavaScript enabled -->
+    <noscript>
+      <b style="color: red; border: 1px solid red; padding: 4px;">
+        Your web browser must have JavaScript enabled in order for this application to display correctly
+      </b>
+    </noscript>
 
     <h1>Web Application Starter Project</h1>
 
diff --git a/user/test/com/google/gwt/i18n/public_es_AR/junit.html b/user/test/com/google/gwt/i18n/public_es_AR/junit.html
index b316a47..edf5fc0 100644
--- a/user/test/com/google/gwt/i18n/public_es_AR/junit.html
+++ b/user/test/com/google/gwt/i18n/public_es_AR/junit.html
@@ -63,5 +63,10 @@
 -->
 </script>
 <iframe src="javascript:''" id='__gwt_historyFrame' style='position:absolute;width:0;height:0;border:0'></iframe>
+<noscript>
+  <b style="color: red; border: 1px solid red; padding: 4px;">
+    Your web browser must have JavaScript enabled in order for this application to display correctly
+  </b>
+</noscript>
 </body>
 </html>
diff --git a/user/test/com/google/gwt/i18n/public_es_MX/junit.html b/user/test/com/google/gwt/i18n/public_es_MX/junit.html
index c1760da..f694694 100644
--- a/user/test/com/google/gwt/i18n/public_es_MX/junit.html
+++ b/user/test/com/google/gwt/i18n/public_es_MX/junit.html
@@ -63,5 +63,10 @@
 -->
 </script>
 <iframe src="javascript:''" id='__gwt_historyFrame' style='position:absolute;width:0;height:0;border:0'></iframe>
+<noscript>
+  <b style="color: red; border: 1px solid red; padding: 4px;">
+    Your web browser must have JavaScript enabled in order for this application to display correctly
+  </b>
+</noscript>
 </body>
 </html>