disable test for RequestPermissionException in testRequestBuilderStringString because IE with certain configuration of WebDriver does not enforce SOP


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@7945 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/test/com/google/gwt/http/client/RequestBuilderTest.java b/user/test/com/google/gwt/http/client/RequestBuilderTest.java
index 766ad4e..b35c8f4 100644
--- a/user/test/com/google/gwt/http/client/RequestBuilderTest.java
+++ b/user/test/com/google/gwt/http/client/RequestBuilderTest.java
@@ -36,6 +36,15 @@
   }
 
   /**
+   * 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
    * exception when an XmlHttpRequest that violates the same origin policy is
    * made.
@@ -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 {
         /*