A redirection of the form:
<html><head><title>Test 1</title>
<meta http-equiv='refresh' content='0;url=file:///tmp/test2.html' /></head>
<body><script type='text/javascript'>
<!--
document.location.href='file:///tmp/test2.html';
--></script></body></html>
Causes WebWindowEvents to be sent out of order.
Misha
Test case (in groovy hope it is okay)
Diff:
Testcase added: com.gargoylesoftware.htmlunit.WebWindowListenerTest.eventOrder()