Changeset 267692 in webkit
- Timestamp:
- Sep 27, 2020, 11:36:34 PM (6 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 added
- 1 deleted
- 15 edited
- 15 moved
-
ChangeLog (modified) (1 diff)
-
imported/w3c/ChangeLog (modified) (1 diff)
-
imported/w3c/resources/resource-files.json (modified) (1 diff)
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/historical-expected.txt (modified) (1 diff)
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/historical.html (modified) (1 diff)
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-eager-expected.txt (moved) (moved from trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-eager.tentative-expected.txt )
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-eager.html (moved) (moved from trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-eager.tentative.html )
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2-expected.txt (moved) (moved from trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2.tentative-expected.txt )
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2.html (moved) (moved from trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2.tentative.html )
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-expected.txt (moved) (moved from trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url.tentative-expected.txt )
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url.html (moved) (moved from trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url.tentative.html )
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-expected.txt (added)
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event-expected.txt (moved) (moved from trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event.tentative-expected.txt )
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event.html (moved) (moved from trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event.tentative.html )
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times-expected.txt (moved) (moved from trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.tentative-expected.txt )
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.html (moved) (moved from trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.tentative.html )
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub-expected.txt (moved) (moved from trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub.tentative-expected.txt )
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub.html (moved) (moved from trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub.tentative.html )
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager-expected.txt (moved) (moved from trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.tentative-expected.txt )
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.html (moved) (moved from trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.tentative.html )
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.html (moved) (moved from trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.tentative.html ) (6 diffs)
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.tentative-expected.txt (deleted)
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-network-error.sub-expected.txt (added)
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-network-error.sub.html (added)
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_anchor_download_block_downloads.sub.tentative-expected.txt (modified) (1 diff)
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_anchor_download_block_downloads.sub.tentative.html (modified) (2 diffs)
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_allow_downloads.sub.tentative-expected.txt (modified) (1 diff)
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_allow_downloads.sub.tentative.html (modified) (1 diff)
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_block_downloads.sub.tentative-expected.txt (modified) (1 diff)
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigation_download_block_downloads.sub.tentative.html (modified) (1 diff)
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/sandbox-toggle-in-inactive-document-crash.html (added)
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/support/download_stash.py (modified) (1 diff)
-
imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/w3c-import.log (modified) (2 diffs)
-
platform/mac-wk1/TestExpectations (modified) (1 diff)
-
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 (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r267658 r267692 1 2020-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 1 13 2020-09-26 Darin Adler <darin@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/ChangeLog
r267667 r267692 1 2020-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 1 43 2020-09-27 Darin Adler <darin@apple.com> 2 44 -
trunk/LayoutTests/imported/w3c/resources/resource-files.json
r267531 r267692 2411 2411 "web-platform-tests/html/semantics/embedded-content/the-iframe-element/same_origin_child.html", 2412 2412 "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", 2413 2414 "web-platform-tests/html/semantics/embedded-content/the-iframe-element/support/blank.htm", 2414 2415 "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 1 1 2 2 PASS iframe.seamless should not be supported 3 PASS iframe.allowPaymentRequest should not be supported 3 4 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/historical.html
r206260 r267692 14 14 // removed in https://github.com/whatwg/html/commit/1490eba4dba5ab476f0981443a86c01acae01311 15 15 t('seamless'); 16 17 // Added by https://github.com/whatwg/html/pull/2133 18 // Removed by https://github.com/whatwg/html/pull/5915 19 t('allowPaymentRequest'); 16 20 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.html
r267691 r267692 12 12 const t_in_viewport = 13 13 async_test('In-viewport iframes load eagerly'); 14 const t_in_viewport_srcdoc=15 async_test('In-viewport srcdoc iframes load eagerly');16 14 const t_below_viewport = 17 15 async_test('Below-viewport iframes load lazily'); 18 16 const t_below_viewport_srcdoc = 19 17 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 }); 20 30 21 31 let has_window_loaded = false; … … 24 34 assert_false(has_window_loaded, 25 35 "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");31 36 }); 32 37 … … 42 47 }); 43 48 49 // Onload handlers for below-viewport srcdoc iframe. 44 50 // Must make this accessible to the srcdoc iframe's body. 45 51 window.below_viewport_srcdoc_iframe_subresource_onload = t_below_viewport_srcdoc.step_func(() => { … … 54 60 "the below-viewport srcdoc iframe loads"); 55 61 }); 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 56 77 </script> 57 78 … … 60 81 loading="lazy" width="200px" height="100px" 61 82 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>66 83 67 84 <div style="height:2000vh;"></div> … … 74 91 loading="lazy" width="200px" height="100px" 75 92 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 76 102 77 103 -
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 1 1 2 2 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" 3 PASS <a download> triggered download in sandbox is blocked. 4 FAIL <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" 4 5 -
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 20 20 "unload", t.unreached_func("Unexpected navigation.")); 21 21 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 31 async_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 ; 23 41 anchor.download = null; 24 42 anchor.click(); … … 27 45 28 46 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 30 49 </script> 31 50 </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 1 CONSOLE MESSAGE: Error while parsing the 'sandbox' attribute: 'allow-downloads' is an invalid sandbox flag. 1 2 CONSOLE MESSAGE: Error while parsing the 'sandbox' attribute: 'allow-downloads' is an invalid sandbox flag. 2 3 CONSOLE MESSAGE: Blocked script execution in 'about:srcdoc' because the document's frame is sandboxed and the 'allow-scripts' permission is not set. 3 4 4 5 6 Harness Error (TIMEOUT), message = null 7 5 8 FAIL 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. 9 TIMEOUT Navigation resulted download in sandbox from <object> is allowed by allow-downloads. Test timed out 6 10 -
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 31 31 document.body.appendChild(iframe); 32 32 }, "Navigation resulted download in sandbox is allowed by allow-downloads."); 33 34 async_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 33 51 </script> 34 52 </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 3 3 4 4 FAIL 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. 5 PASS Navigation resulted download in sandbox from <object> is blocked. 5 6 -
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 30 30 document.body.appendChild(iframe); 31 31 }, "Navigation resulted download in sandbox is blocked."); 32 33 34 async_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 32 51 </script> 33 52 </body> -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/support/download_stash.py
r263987 r267692 23 23 for i in range(count): # pylint: disable=unused-variable 24 24 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"): 27 26 return 28 27 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 30 30 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-append-to-child-document.html 31 31 /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.html33 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2. tentative.html34 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url. tentative.html35 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event. tentative.html36 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times. tentative.html37 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub. tentative.html38 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager. tentative.html39 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy. tentative.html32 /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 40 40 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-modify-scrolling-attr-to-yes-expected.html 41 41 /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 42 43 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-nosrc.html 43 44 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-synchronously-discard.html … … 85 86 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/same_origin_parentage.html 86 87 /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 87 89 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/sandbox_001.htm 88 90 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/sandbox_002.htm -
trunk/LayoutTests/platform/mac-wk1/TestExpectations
r267472 r267692 192 192 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/picture-loading-lazy.html [ Skip ] 193 193 imported/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 ]194 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url-2.html [ Skip ] 195 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-base-url.html [ Skip ] 196 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-load-event.html [ Skip ] 197 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.html [ Skip ] 198 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-referrerpolicy-change.sub.html [ Skip ] 199 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.html [ Skip ] 200 imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.html [ Skip ] 201 201 202 202 # 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 1 CONSOLE MESSAGE: Blocked script execution in 'about:srcdoc' because the document's frame is sandboxed and the 'allow-scripts' permission is not set. 1 2 CONSOLE MESSAGE: Blocked script execution in 'about:srcdoc' because the document's frame is sandboxed and the 'allow-scripts' permission is not set. 2 3 3 4 4 FAIL <a download> triggered download in sandbox is blocked. undefined is not an object (evaluating 'anchor.href = "support/download_stash.py?token=" + token') 5 FAIL <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. 6 FAIL <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') 5 7
Note:
See TracChangeset
for help on using the changeset viewer.