⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 284723 in webkit


Ignore:
Timestamp:
Oct 22, 2021, 3:53:43 PM (5 years ago)
Author:
Chris Dumez
Message:

Regression (r284610): [ iOS BigSur wk2 ] http/tests/security/window-opened-from-sandboxed-iframe-should-inherit-sandbox.html is failing
https://bugs.webkit.org/show_bug.cgi?id=232151
<rdar://problem/84552682>

Reviewed by Ryan Haddad.

The test expects a CONSOLE message to get logged to indicate that a load was blocked.
Rely on internals.setConsoleMessageListener to wait for this CONSOLE message instead
of using a timer in order the address the flakiness.

  • http/tests/security/window-opened-from-sandboxed-iframe-should-inherit-sandbox.html:
  • platform/ios-wk2/TestExpectations:
  • platform/mac-wk2/TestExpectations:
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r284722 r284723  
     12021-10-22  Chris Dumez  <cdumez@apple.com>
     2
     3        Regression (r284610): [ iOS BigSur wk2 ] http/tests/security/window-opened-from-sandboxed-iframe-should-inherit-sandbox.html is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=232151
     5        <rdar://problem/84552682>
     6
     7        Reviewed by Ryan Haddad.
     8
     9        The test expects a CONSOLE message to get logged to indicate that a load was blocked.
     10        Rely on `internals.setConsoleMessageListener` to wait for this CONSOLE message instead
     11        of using a timer in order the address the flakiness.
     12
     13        * http/tests/security/window-opened-from-sandboxed-iframe-should-inherit-sandbox.html:
     14        * platform/ios-wk2/TestExpectations:
     15        * platform/mac-wk2/TestExpectations:
     16
    1172021-10-22  Ryan Haddad  <ryanhaddad@apple.com>
    218
  • trunk/LayoutTests/http/tests/security/window-opened-from-sandboxed-iframe-should-inherit-sandbox.html

    r282103 r284723  
    2626        theLink.dispatchEvent(clickEvent);
    2727
    28         setTimeout(wrapUp, 500);
     28        var iframeContentWindow = document.getElementById("theIframe").contentWindow;
     29        if (iframeContentWindow.internals) {
     30            iframeContentWindow.internals.setConsoleMessageListener((msg) => {
     31                setTimeout(wrapUp, 0);
     32            });
     33        } else
     34            setTimeout(wrapUp, 1000);
    2935    }
    3036</script>
  • trunk/LayoutTests/platform/ios-wk2/TestExpectations

    r284714 r284723  
    22322232webkit.org/b/232120 imported/w3c/web-platform-tests/content-security-policy/script-src/script-src-multiple-policies-multiple-hashing-algorithms.html [ Pass Failure DumpJSConsoleLogInStdErr ]
    22332233
    2234 webkit.org/b/232151 http/tests/security/window-opened-from-sandboxed-iframe-should-inherit-sandbox.html [ Failure ]
    2235 
    22362234webkit.org/b/225528 http/wpt/fetch/fetch-response-body-stop-in-worker.html [ Pass Crash ]
  • trunk/LayoutTests/platform/mac-wk2/TestExpectations

    r284701 r284723  
    11721172[ Mojave ] tiled-drawing/scrolling/fast-scroll-mainframe-zoom.html [ Pass Failure ]
    11731173
    1174 # <rdar://problem/61833992> REGRESSION: (20A267) http/tests/security/window-opened-from-sandboxed-iframe-should-inherit-sandbox.html
    1175 [ BigSur+ ] http/tests/security/window-opened-from-sandboxed-iframe-should-inherit-sandbox.html [ Pass Failure ]
    1176 
    11771174# <rdar://problem/63626512> REGRESSION(20A279-20A291a): webrtc/simulcast-h264.html is a constant timeout
    11781175webrtc/simulcast-h264.html [ Pass Timeout ]
     
    16901687webkit.org/b/231780 [ Debug ] imported/w3c/web-platform-tests/webrtc/simulcast/basic.https.html [ Pass Failure ]
    16911688
    1692 webkit.org/b/232151 [ BigSur Debug ] http/tests/security/window-opened-from-sandboxed-iframe-should-inherit-sandbox.html [ Failure ]
Note: See TracChangeset for help on using the changeset viewer.