<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>195671</bug_id>
          
          <creation_ts>2019-03-13 06:22:58 -0700</creation_ts>
          <short_desc>[WPE][GTK] New WPT iframe sandbox tests failing</short_desc>
          <delta_ts>2023-01-25 19:37:03 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alicia Boya García">aboya</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1515946</commentid>
    <comment_count>0</comment_count>
    <who name="Alicia Boya García">aboya</who>
    <bug_when>2019-03-13 06:22:58 -0700</bug_when>
    <thetext>imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_allow_downloads_without_user_activation.sub.tentative.html
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_block_downloads_without_user_activation.sub.tentative.html

Probable cause:

There seems to be a problem accessing iframes within the test runner. The first of these tests actually pass in the minibrowser, whereas in the test runner `anchor` is undefined, making an unexpected failure:

var iframe = document.createElement(&quot;iframe&quot;);
iframe.srcdoc = &quot;&lt;a&gt;Download&lt;/a&gt;&quot;;
iframe.sandbox = &quot;allow-same-origin allow-downloads-without-user-activation&quot;;
iframe.onload = t.step_func(function () {
    iframe.contentWindow.addEventListener(
        &quot;unload&quot;, t.unreached_func(&quot;Unexpected navigation.&quot;));
    var anchor = iframe.contentDocument.getElementsByTagName(&apos;a&apos;)[0];
    // Set |finish-delay| to let the server stream a response over a  period
    // of time, so it&apos;s able to catch potential download cancellation by
    // detecting a socket close.
    anchor.href = &quot;support/download_stash.py?token=&quot; + token + &quot;&amp;finish-delay=&quot; + StreamDownloadFinishDelay();
    anchor.click();
    AssertDownloadSuccess(t, token, StreamDownloadFinishDelay() + DownloadVerifyDelay());
});

document.body.appendChild(iframe);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928476</commentid>
    <comment_count>1</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2023-01-25 19:36:59 -0800</bug_when>
    <thetext>There are no references to this bug in any TestExpectations. It&apos;s probable this bug was solved at some point but it wasn&apos;t marked as closed. I&apos;m closing this bug now. If you think this bug report is still valid, please reopen it and add an entry to TestExpectations.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>