Changeset 262019 in webkit


Ignore:
Timestamp:
May 21, 2020 12:00:26 PM (4 years ago)
Author:
Chris Dumez
Message:

compositing/show-composited-iframe-on-back-button.html is a flaky timing out
https://bugs.webkit.org/show_bug.cgi?id=212221
<rdar://problem/63493074>

Reviewed by Alex Christensen.

I am unable to reproduce the flakiness locally so this is a speculative fix.
Stop using testRunner.queueLoad() / testRunner.queueBackNavigation() and instead
just navigate to page-cache-helper.html in JS, by setting window.location.
Also, call testRunner.waitUntilDone() and call testRunner.notifyDone() when the
page comes out of the back/forward cache.

  • compositing/show-composited-iframe-on-back-button.html:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r262011 r262019  
     12020-05-21  Chris Dumez  <cdumez@apple.com>
     2
     3        compositing/show-composited-iframe-on-back-button.html is a flaky timing out
     4        https://bugs.webkit.org/show_bug.cgi?id=212221
     5        <rdar://problem/63493074>
     6
     7        Reviewed by Alex Christensen.
     8
     9        I am unable to reproduce the flakiness locally so this is a speculative fix.
     10        Stop using testRunner.queueLoad() / testRunner.queueBackNavigation() and instead
     11        just navigate to page-cache-helper.html in JS, by setting window.location.
     12        Also, call testRunner.waitUntilDone() and call testRunner.notifyDone() when the
     13        page comes out of the back/forward cache.
     14
     15        * compositing/show-composited-iframe-on-back-button.html:
     16
    1172020-05-21  Jacob Uphoff  <jacob_uphoff@apple.com>
    218
  • trunk/LayoutTests/compositing/show-composited-iframe-on-back-button.html

    r251220 r262019  
    66<link rel="stylesheet" href="resources/show-composited-iframe-on-back-button.css">
    77<script>
    8 function handleOnPageShow(pageTransitionEvent)
    9 {
    10     console.assert(window.testRunner);
    11     if (pageTransitionEvent.persisted)
    12         return;
     8if (window.testRunner)
     9    testRunner.waitUntilDone();
    1310
    14     // First time the page has been loaded.
    15     testRunner.queueLoad("about:blank");
    16     testRunner.queueBackNavigation(1);
     11onpageshow = (pageTransitionEvent) => {
     12    if (pageTransitionEvent.persisted) {
     13        if (window.testRunner)
     14            testRunner.notifyDone();
     15    }
    1716}
    1817
    19 if (window.testRunner)
    20     window.onpageshow = handleOnPageShow;
     18onload = () => {
     19    setTimeout(() => {
     20        window.location = "../fast/history/resources/page-cache-helper.html";
     21    }, 0);
     22}
     23
    2124</script>
    2225</head>
Note: See TracChangeset for help on using the changeset viewer.