Changeset 179572 in webkit


Ignore:
Timestamp:
Feb 3, 2015 3:02:40 PM (9 years ago)
Author:
ap@apple.com
Message:

http/tests/xmlhttprequest/event-listener-gc.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=33342

Reviewed by Zalan Bujtas.

This failure means that the GC timer fires after readystatechange event. As a
speculative fix, start the timer before starting the load, so that it's certain to
finish earlier.

  • http/tests/xmlhttprequest/event-listener-gc.html:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r179570 r179572  
     12015-02-03  Alexey Proskuryakov  <ap@apple.com>
     2
     3        http/tests/xmlhttprequest/event-listener-gc.html is flaky
     4        https://bugs.webkit.org/show_bug.cgi?id=33342
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        This failure means that the GC timer fires after readystatechange event. As a
     9        speculative fix, start the timer before starting the load, so that it's certain to
     10        finish earlier.
     11
     12        * http/tests/xmlhttprequest/event-listener-gc.html:
     13
    1142015-02-03  Brent Fulgham  <bfulgham@apple.com>
    215
  • trunk/LayoutTests/http/tests/xmlhttprequest/event-listener-gc.html

    r145090 r179572  
    3131        testRunner.waitUntilDone();
    3232    }
    33        
     33
     34    // Timeout ensures stack references to request are cleared when we collect.
     35    // Start the timer before starting the load, so that it's guaranteed to fire first.
     36    setTimeout('collect();', 0);
     37
    3438    var request = new XMLHttpRequest();
    3539    request.onreadystatechange = processStateChange;
    3640    request.open("GET", "print-content-type.cgi", true);
    3741    request.send(null);
    38    
    39     setTimeout('collect();', 0); // timeout ensures stack references to request are cleared when we collect
    4042}
    4143</script>
Note: See TracChangeset for help on using the changeset viewer.