Bug 1709798 [wpt PR 28861] - Expose direct socket APIs via [DirectSocketEnabled]., a=testonly

Automatic update from web-platform-tests
Expose direct socket APIs via [DirectSocketEnabled].

This patch introduces a new placeholder IDL extended attribute for the
set of restrictions which might enable us to safely expose direct
sockets, as well as a set of other APIs that have similar
outside-the-web threat models. It then applies that IDL extended
attribute to the existing direct socket IDL files.

For the moment, this imposes two requirements on Direct Sockets:

1.  Opting-into COI via COOP/COEP.
2.  Toggling the kDirectSockets CLI flag.

I expect these requirements to shift in the future, but this is a
reasonable place to start.

Patch 5/5:
1.  https://chromium-review.googlesource.com/c/chromium/src/+/2871670
2.  https://chromium-review.googlesource.com/c/chromium/src/+/2874306
3.  https://chromium-review.googlesource.com/c/chromium/src/+/2874288
4.  This patch.
5.  https://chromium-review.googlesource.com/c/chromium/src/+/2875217

Note that this CL removes the Direct Socket interfaces from the
`webexposed` test suite. That's a little too complicated to fix in
this CL, but I aim to fix it in https://crbug.com/1206656.

Bug: 1206150
Change-Id: I519e1c5d164c43f5870c45823d08063f4a3af682
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2874890
Reviewed-by: Yuki Shiino <yukishiino@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Eric Willigers <ericwilligers@chromium.org>
Commit-Queue: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#880498}

--

wpt-commits: a0e29ee89172ef818a403af8a44fd45fe11b133d
wpt-pr: 28861
This commit is contained in:
Mike West 2021-05-08 10:05:23 +00:00 коммит произвёл moz-wptsync-bot
Родитель 2c7b65ed6e
Коммит c42887c7cf
3 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,2 @@
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp

Просмотреть файл

@ -0,0 +1,2 @@
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp

Просмотреть файл

@ -0,0 +1,2 @@
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp