Bug 1720857 [wpt PR 29688] - Pass NavigationDownloadPolicy in CreateNewWindowParams...
commit0adad58d44721e959fabdbd8a54a751f00ad39d7
authorAntonio Sartori <antoniosartori@chromium.org>
Wed, 1 Sep 2021 14:10:19 +0000 (1 14:10 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 2 Sep 2021 10:30:42 +0000 (2 10:30 +0000)
tree97b8318e118c3c523511d0c0960c0c7d1092eb24
parent816ad72d9d043f3a2d2d930b40b11d27e42ce64e
Bug 1720857 [wpt PR 29688] - Pass NavigationDownloadPolicy in CreateNewWindowParams, a=testonly

Automatic update from web-platform-tests
Pass NavigationDownloadPolicy in CreateNewWindowParams

When opening popups with noopener, navigations are performed directly
by the CreateNewWindow mojo call. This mojo call was not sending the
NavigationDownloadPolicy parameter, allowing in this way to bypass
sandbox for download.

Bug: 1100761
Change-Id: I4f212738f8145460fb0bb3c420020c6cdbfa5551
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3033504
Commit-Queue: Antonio Sartori <antoniosartori@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Yao Xiao <yaoxia@chromium.org>
Cr-Commit-Position: refs/heads/main@{#915500}

--

wpt-commits: 00829b4d4191246df65f9029fb3f0284f6651697
wpt-pr: 29688
testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_anchor_download_allow_downloads.sub.tentative.html [deleted file]
testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_anchor_download_allow_downloads.tentative.html [new file with mode: 0644]
testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_anchor_download_block_downloads.sub.tentative.html [deleted file]
testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_anchor_download_block_downloads.tentative.html [new file with mode: 0644]
testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_window_open_download_allow_downloads.tentative.html [new file with mode: 0644]
testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_window_open_download_block_downloads.tentative.html [new file with mode: 0644]