Friday, June 28, 2013

Re: GWTTestCase and CORS

On Friday, June 28, 2013 2:22:36 AM UTC+2, emurmur wrote:
I'm writing a test case that involves a cross-origin call and htmlunit chokes on it.  The code works in real browsers.  Recent versions of htmlunit seem to support CORS (based on commit comments).  How do I find what version of htmlunit is bundled with GWT and is there a way to upgrade it?  Thanks.

All the dependencies can be found in (see, and as you can see in, GWT currently depends on HtmlUnit 2.9 (and as you can see in it's actually a patched version).
Apparently, we could update to 2.10 with no breakage (and 2.10 includes all patches applied to the 2.9 for GWT), at least GWT compiles against 2.10 but I haven't heavily tested it (yet). I haven't tried with more recent versions.
I think you can try it out by putting HtmlUnit 2.10 (and its dependencies) before gwt-dev.jar in your classpath (i.e. without rebuilding gwt-dev).
You could also try using PhantomJS instead of HtmlUnit:

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment