Menu ▾ ▴

#1101 WebWindowEvents arrive out of order when Javascript redirect

Latest SVN
open
nobody
None
5
2015-04-06
2010-06-05
Misha
No

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

Discussion

  • Misha

    Misha - 2010-06-05

    Test case (in groovy hope it is okay)

     
  • RBRi

    RBRi - 2013-03-28
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,7 @@
     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'>
    @@ -6,6 +9,9 @@
     document.location.href='file:///tmp/test2.html';
     --></script></body></html>
    
    +
    +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    +
     Causes WebWindowEvents to be sent out of order.
    
     Misha
    
    • milestone: --> Latest SVN
     
  • RBRi

    RBRi - 2015-04-06

    Testcase added: com.gargoylesoftware.htmlunit.WebWindowListenerTest.eventOrder()

     

Log in to post a comment.