Revision: 7945
Author: [email protected]
Date: Mon Apr 19 13:22:03 2010
Log: temporarily disable testRequestBuilderStringString before Selenium Farm team cnfirms and fixes the lower secirity problem. Public: disable test for RequestPermissionException in testRequestBuilderStringString because IE with certain configuration of WebDriver does not enforce SOP

http://code.google.com/p/google-web-toolkit/source/detail?r=7945

Modified:
 /trunk/user/test/com/google/gwt/http/client/RequestBuilderTest.java

=======================================
--- /trunk/user/test/com/google/gwt/http/client/RequestBuilderTest.java Thu Mar 25 10:46:07 2010 +++ /trunk/user/test/com/google/gwt/http/client/RequestBuilderTest.java Mon Apr 19 13:22:03 2010
@@ -34,6 +34,15 @@
   private static String getTestBaseURL() {
     return GWT.getModuleBaseURL() + "testRequestBuilder/";
   }
+
+  /**
+ * HACK: Part of a work around for IE's failure to throw an exception when an
+   * XmlHttpRequest that violates the same origin policy is made.
+   */
+  private static native boolean isIE() /*-{
+    var ua = navigator.userAgent.toLowerCase();
+    return ua.indexOf("msie") != -1;
+  }-*/;

   /**
    * HACK: Part of a work around for Safari 2.0.4's failure to throw an
@@ -127,7 +136,7 @@
         }
       });

-      if (isSafari() || isFirefox35()) {
+      if (isIE() || isSafari() || isFirefox35()) {
         /*
* HACK: Safari 2.0.4 will not throw an exception for XHR's that violate * the same-origin policy. It appears to silently ignore them so we do
@@ -138,6 +147,9 @@
* FF3.5 allows XHR's to violate the same-origin policy and offers no * way to disable the feature from the client. Only the server can block
          * the same origin policy.
+         *
+ * IE with certain configuration of WebDriver does not enforce the same
+         * origin policy.
          */
       } else {
         /*

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to