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

Changeset 267692 in webkit


Ignore:
Timestamp:
Sep 27, 2020, 11:36:34 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Resync web-platform-tests/html/semantics/the-iframe-element from upstream
https://bugs.webkit.org/show_bug.cgi?id=217033

Patch by Rob Buis <rbuis@igalia.com> on 2020-09-27
Reviewed by Sam Weinig.

LayoutTests/imported/w3c:

Resync web-platform-tests/html/semantics/the-iframe-element from upstream a520598adb3957def27f1b63c6bff62e891ccbda.

  • resources/resource-files.json:
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/historical-expected.txt:
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/historical.html:
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-eager-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-eager.tentative-expected.txt.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-eager.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-eager.tentative.html.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2.tentative-expected.txt.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2.tentative.html.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url.tentative-expected.txt.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url.tentative.html.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-expected.txt: Added.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event.tentative-expected.txt.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event.tentative.html.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.tentative-expected.txt.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.tentative.html.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub.tentative-expected.txt.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub.tentative.html.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.tentative-expected.txt.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.tentative.html.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.tentative.html.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.tentative-expected.txt: Removed.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-network-error.sub-expected.txt: Added.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-network-error.sub.html: Added.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_anchor_download_block_downloads.sub.tentative-expected.txt:
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_anchor_download_block_downloads.sub.tentative.html:
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_allow_downloads.sub.tentative-expected.txt:
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_allow_downloads.sub.tentative.html:
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_block_downloads.sub.tentative-expected.txt:
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_block_downloads.sub.tentative.html:
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/sandbox-toggle-in-inactive-document-crash.html: Added.
  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/support/download_stash.py:

(main):

  • web-platform-tests/html/semantics/embedded-content/the-iframe-element/w3c-import.log:

LayoutTests:

Adjust for tentative extension removal.

  • platform/mac-wk1/TestExpectations:
  • platform/mac-wk1/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_anchor_download_block_downloads.sub.tentative-expected.txt:
Location:
trunk/LayoutTests
Files:
4 added
1 deleted
15 edited
15 moved

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r267658 r267692  
     12020-09-27  Rob Buis  <rbuis@igalia.com>
     2
     3        Resync web-platform-tests/html/semantics/the-iframe-element from upstream
     4        https://bugs.webkit.org/show_bug.cgi?id=217033
     5
     6        Reviewed by Sam Weinig.
     7
     8        Adjust for tentative extension removal.
     9
     10        * platform/mac-wk1/TestExpectations:
     11        * platform/mac-wk1/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_anchor_download_block_downloads.sub.tentative-expected.txt:
     12
    1132020-09-26  Darin Adler  <darin@apple.com>
    214
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r267667 r267692  
     12020-09-27  Rob Buis  <rbuis@igalia.com>
     2
     3        Resync web-platform-tests/html/semantics/the-iframe-element from upstream
     4        https://bugs.webkit.org/show_bug.cgi?id=217033
     5
     6        Reviewed by Sam Weinig.
     7
     8        Resync web-platform-tests/html/semantics/the-iframe-element from upstream a520598adb3957def27f1b63c6bff62e891ccbda.
     9
     10        * resources/resource-files.json:
     11        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/historical-expected.txt:
     12        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/historical.html:
     13        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-eager-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-eager.tentative-expected.txt.
     14        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-eager.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-eager.tentative.html.
     15        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2.tentative-expected.txt.
     16        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2.tentative.html.
     17        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url.tentative-expected.txt.
     18        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url.tentative.html.
     19        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-expected.txt: Added.
     20        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event.tentative-expected.txt.
     21        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event.tentative.html.
     22        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.tentative-expected.txt.
     23        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.tentative.html.
     24        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub.tentative-expected.txt.
     25        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub.tentative.html.
     26        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.tentative-expected.txt.
     27        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.tentative.html.
     28        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.tentative.html.
     29        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.tentative-expected.txt: Removed.
     30        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-network-error.sub-expected.txt: Added.
     31        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-network-error.sub.html: Added.
     32        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_anchor_download_block_downloads.sub.tentative-expected.txt:
     33        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_anchor_download_block_downloads.sub.tentative.html:
     34        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_allow_downloads.sub.tentative-expected.txt:
     35        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_allow_downloads.sub.tentative.html:
     36        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_block_downloads.sub.tentative-expected.txt:
     37        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_block_downloads.sub.tentative.html:
     38        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/sandbox-toggle-in-inactive-document-crash.html: Added.
     39        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/support/download_stash.py:
     40        (main):
     41        * web-platform-tests/html/semantics/embedded-content/the-iframe-element/w3c-import.log:
     42
    1432020-09-27  Darin Adler  <darin@apple.com>
    244
  • trunk/LayoutTests/imported/w3c/resources/resource-files.json

    r267531 r267692  
    24112411        "web-platform-tests/html/semantics/embedded-content/the-iframe-element/same_origin_child.html",
    24122412        "web-platform-tests/html/semantics/embedded-content/the-iframe-element/same_origin_grandchild.html",
     2413        "web-platform-tests/html/semantics/embedded-content/the-iframe-element/sandbox-toggle-in-inactive-document-crash.html",
    24132414        "web-platform-tests/html/semantics/embedded-content/the-iframe-element/support/blank.htm",
    24142415        "web-platform-tests/html/semantics/embedded-content/the-iframe-element/support/document-with-embedded-svg.html",
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/historical-expected.txt

    r267646 r267692  
    11
    22PASS iframe.seamless should not be supported
     3PASS iframe.allowPaymentRequest should not be supported
    34
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/historical.html

    r206260 r267692  
    1414// removed in https://github.com/whatwg/html/commit/1490eba4dba5ab476f0981443a86c01acae01311
    1515t('seamless');
     16
     17// Added by https://github.com/whatwg/html/pull/2133
     18// Removed by https://github.com/whatwg/html/pull/5915
     19t('allowPaymentRequest');
    1620</script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.html

    r267691 r267692  
    1212  const t_in_viewport =
    1313    async_test('In-viewport iframes load eagerly');
    14   const t_in_viewport_srcdoc=
    15     async_test('In-viewport srcdoc iframes load eagerly');
    1614  const t_below_viewport =
    1715    async_test('Below-viewport iframes load lazily');
    1816  const t_below_viewport_srcdoc =
    1917    async_test('Below-viewport srcdoc iframes load lazily');
     18  const t_below_viewport_data_url =
     19    async_test('Below-viewport data: url iframes load lazily');
     20  const t_below_viewport_blob_url =
     21    async_test('Below-viewport blob url iframes load lazily');
     22
     23
     24  document.addEventListener('DOMContentLoaded', e => {
     25    const blob_url_iframe = document.querySelector('#below_viewport_blob_url');
     26    const blob = new Blob(['<p>Blob subframe</p>'], {type: 'text/html'});
     27    const url = URL.createObjectURL(blob);
     28    blob_url_iframe.src = url;
     29  });
    2030
    2131  let has_window_loaded = false;
     
    2434    assert_false(has_window_loaded,
    2535      "The in_viewport iframe should not block the load event");
    26   });
    27 
    28   const in_viewport_srcdoc_iframe_onload = t_in_viewport_srcdoc.step_func_done(() => {
    29     assert_false(has_window_loaded,
    30       "The in_viewport srcdoc iframe should not block the load event");
    3136  });
    3237
     
    4247  });
    4348
     49  // Onload handlers for below-viewport srcdoc iframe.
    4450  // Must make this accessible to the srcdoc iframe's body.
    4551  window.below_viewport_srcdoc_iframe_subresource_onload = t_below_viewport_srcdoc.step_func(() => {
     
    5460                "the below-viewport srcdoc iframe loads");
    5561  });
     62
     63  // Onload handler for below-viewport data url iframe.
     64  const below_viewport_data_url_iframe_onload = t_below_viewport_data_url.step_func_done(() => {
     65    assert_true(has_window_loaded,
     66                "The window load event should have fired before " +
     67                "the below-viewport data url iframe loads");
     68  });
     69
     70  // Onload handler for below-viewport blob url iframe.
     71  const below_viewport_blob_url_iframe_onload = t_below_viewport_blob_url.step_func_done(() => {
     72    assert_true(has_window_loaded,
     73                "The window load event should have fired before " +
     74                "the below-viewport blob url iframe loads");
     75  });
     76
    5677</script>
    5778
     
    6081          loading="lazy" width="200px" height="100px"
    6182          onload="in_viewport_iframe_onload();"></iframe>
    62   <iframe id="in_viewport_srcdoc"
    63           srcdoc="<body><img src='/common/square.png?in-viewport'></body>"
    64           loading="lazy" width="200px" height="100px"
    65           onload="in_viewport_srcdoc_iframe_onload();"></iframe>
    6683
    6784  <div style="height:2000vh;"></div>
     
    7491          loading="lazy" width="200px" height="100px"
    7592          onload="below_viewport_srcdoc_iframe_onload();"></iframe>
     93  <iframe id="below_viewport_data_url"
     94          src="data:text/html,<p>Subframe</p>"
     95          loading="lazy" width="200px" height="100px"
     96          onload="below_viewport_data_url_iframe_onload();"></iframe>
     97  <!-- This iframe has its `src` set to a blob URL dynamically above -->
     98  <iframe id="below_viewport_blob_url"
     99          loading="lazy" width="200px" height="100px"
     100          onload="below_viewport_blob_url_iframe_onload();"></iframe>
     101
    76102
    77103
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_anchor_download_block_downloads.sub.tentative-expected.txt

    r253791 r267692  
    11
    22
    3 FAIL <a download> triggered download in sandbox is blocked. assert_equals: Expect no download to happen, but got one. expected "TOKEN_NOT_SET" but got "TOKEN_SET"
     3PASS <a download> triggered download in sandbox is blocked.
     4FAIL <a download> triggered download in sandbox is blocked before a request is made assert_equals: Expect no download to happen, but got one. expected "TOKEN_NOT_SET" but got "TOKEN_SET"
    45
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_anchor_download_block_downloads.sub.tentative.html

    r253791 r267692  
    2020            "unload", t.unreached_func("Unexpected navigation."));
    2121        var anchor = iframe.contentDocument.getElementsByTagName('a')[0];
    22         anchor.href = "support/download_stash.py?token=" + token;
     22        anchor.href = "support/download_stash.py?token=" + token + "&finish-delay=" + StreamDownloadFinishDelay();
     23        anchor.download = null;
     24        anchor.click();
     25        AssertDownloadFailure(t, token, StreamDownloadFinishDelay() + DownloadVerifyDelay());
     26    });
     27
     28    document.body.appendChild(iframe);
     29}, "<a download> triggered download in sandbox is blocked.");
     30
     31async_test(t => {
     32    const token = "{{$id:uuid()}}";
     33    var iframe = document.createElement("iframe");
     34    iframe.srcdoc = "<a>Download</a>";
     35    iframe.sandbox = "allow-same-origin";
     36    iframe.onload = t.step_func(function () {
     37        iframe.contentWindow.addEventListener(
     38            "unload", t.unreached_func("Unexpected navigation."));
     39        var anchor = iframe.contentDocument.getElementsByTagName('a')[0];
     40        anchor.href = "support/download_stash.py?token=" + token ;
    2341        anchor.download = null;
    2442        anchor.click();
     
    2745
    2846    document.body.appendChild(iframe);
    29 }, "<a download> triggered download in sandbox is blocked.");
     47}, "<a download> triggered download in sandbox is blocked before a request is made");
     48
    3049</script>
    3150</body>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_allow_downloads.sub.tentative-expected.txt

    r259900 r267692  
     1CONSOLE MESSAGE: Error while parsing the 'sandbox' attribute: 'allow-downloads' is an invalid sandbox flag.
    12CONSOLE MESSAGE: Error while parsing the 'sandbox' attribute: 'allow-downloads' is an invalid sandbox flag.
    23CONSOLE MESSAGE: Blocked script execution in 'about:srcdoc' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
    34
    45
     6Harness Error (TIMEOUT), message = null
     7
    58FAIL Navigation resulted download in sandbox is allowed by allow-downloads. Sandbox access violation: Blocked a frame at "http://localhost:8800" from accessing a cross-origin frame.  The frame being accessed is sandboxed and lacks the "allow-same-origin" flag.
     9TIMEOUT Navigation resulted download in sandbox from <object> is allowed by allow-downloads. Test timed out
    610
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_allow_downloads.sub.tentative.html

    r253791 r267692  
    3131    document.body.appendChild(iframe);
    3232}, "Navigation resulted download in sandbox is allowed by allow-downloads.");
     33
     34async_test(t => {
     35    const token = "{{$id:uuid()}}";
     36    var iframe = document.createElement("iframe");
     37
     38    const folder = location.origin+"/html/semantics/embedded-content/the-iframe-element/";
     39    const href = `${folder}support/download_stash.py?token=${token}&finish-delay=${StreamDownloadFinishDelay() }`;
     40    const objectDoc =`<a href="${href}">download</a>
     41    <${"script"}> document.querySelector("a").click(); </${"script"}>`;
     42
     43    iframe.srcdoc = `<object data='data:text/html,${objectDoc}'></object>`;
     44    iframe.sandbox = "allow-same-origin  allow-scripts allow-downloads";
     45    iframe.addEventListener("load",()=>{
     46        AssertDownloadSuccess(t, token, StreamDownloadFinishDelay() + DownloadVerifyDelay());
     47    })
     48    document.body.appendChild(iframe);
     49}, "Navigation resulted download in sandbox from <object> is allowed by allow-downloads.");
     50
    3351</script>
    3452</body>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_block_downloads.sub.tentative-expected.txt

    r253791 r267692  
    33
    44FAIL Navigation resulted download in sandbox is blocked. Sandbox access violation: Blocked a frame at "http://localhost:8800" from accessing a cross-origin frame.  The frame being accessed is sandboxed and lacks the "allow-same-origin" flag.
     5PASS Navigation resulted download in sandbox from <object> is blocked.
    56
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_block_downloads.sub.tentative.html

    r253791 r267692  
    3030    document.body.appendChild(iframe);
    3131}, "Navigation resulted download in sandbox is blocked.");
     32
     33
     34async_test(t => {
     35    const token = "{{$id:uuid()}}";
     36    var iframe = document.createElement("iframe");
     37
     38    const folder = location.origin+"/html/semantics/embedded-content/the-iframe-element/";
     39    const href = `${folder}support/download_stash.py?token=${token}&finish-delay=${StreamDownloadFinishDelay() }`;
     40    const objectDoc =`<a href="${href}">download</a>
     41    <${"script"}> document.querySelector("a").click(); </${"script"}>`;
     42
     43    iframe.srcdoc = `<object data='data:text/html,${objectDoc}'></object>`;
     44    iframe.sandbox = "allow-same-origin  allow-scripts";
     45    iframe.addEventListener("load",()=>{
     46        AssertDownloadFailure(t, token, StreamDownloadFinishDelay() + DownloadVerifyDelay());
     47    })
     48    document.body.appendChild(iframe);
     49}, "Navigation resulted download in sandbox from <object> is blocked.");
     50
    3251</script>
    3352</body>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/support/download_stash.py

    r263987 r267692  
    2323    for i in range(count): # pylint: disable=unused-variable
    2424        time.sleep(single_delay)
    25         response.writer.write_content(u"\n")
    26         if not response.writer.flush():
     25        if not response.writer.write_content(b"\n"):
    2726          return
    2827    request.server.stash.put(token, True)
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/w3c-import.log

    r263987 r267692  
    3030/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-append-to-child-document.html
    3131/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-load-event.html
    32 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-eager.tentative.html
    33 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2.tentative.html
    34 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url.tentative.html
    35 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event.tentative.html
    36 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.tentative.html
    37 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub.tentative.html
    38 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.tentative.html
    39 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.tentative.html
     32/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-eager.html
     33/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2.html
     34/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url.html
     35/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event.html
     36/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.html
     37/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub.html
     38/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.html
     39/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.html
    4040/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-modify-scrolling-attr-to-yes-expected.html
    4141/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-modify-scrolling-attr-to-yes.html
     42/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-network-error.sub.html
    4243/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-nosrc.html
    4344/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-synchronously-discard.html
     
    8586/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/same_origin_parentage.html
    8687/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/sandbox-ascii-case-insensitive.html
     88/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/sandbox-toggle-in-inactive-document-crash.html
    8789/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/sandbox_001.htm
    8890/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/sandbox_002.htm
  • trunk/LayoutTests/platform/mac-wk1/TestExpectations

    r267472 r267692  
    192192imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/picture-loading-lazy.html [ Skip ]
    193193imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/remove-element-and-scroll.html [ Skip ]
    194 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2.tentative.html [ Skip ]
    195 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url.tentative.html [ Skip ]
    196 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event.tentative.html [ Skip ]
    197 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.tentative.html [ Skip ]
    198 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub.tentative.html [ Skip ]
    199 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.tentative.html [ Skip ]
    200 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.tentative.html [ Skip ]
     194imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2.html [ Skip ]
     195imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url.html [ Skip ]
     196imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event.html [ Skip ]
     197imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.html [ Skip ]
     198imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub.html [ Skip ]
     199imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.html [ Skip ]
     200imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.html [ Skip ]
    201201
    202202# testRunner.queueLoad() does not support loading data URLs in Mac WK1
  • trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_anchor_download_block_downloads.sub.tentative-expected.txt

    r253791 r267692  
     1CONSOLE MESSAGE: Blocked script execution in 'about:srcdoc' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
    12CONSOLE MESSAGE: Blocked script execution in 'about:srcdoc' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
    23
    34
    4 FAIL <a download> triggered download in sandbox is blocked. undefined is not an object (evaluating 'anchor.href = "support/download_stash.py?token=" + token')
     5FAIL <a download> triggered download in sandbox is blocked. Sandbox access violation: Blocked a frame at "http://localhost:8800" from accessing a cross-origin frame.  The frame being accessed is sandboxed and lacks the "allow-same-origin" flag.
     6FAIL <a download> triggered download in sandbox is blocked before a request is made undefined is not an object (evaluating 'anchor.href = "support/download_stash.py?token=" + token')
    57
Note: See TracChangeset for help on using the changeset viewer.