From 1cda3156c0dde2c67aacd3563c40fe4de01bae89 Mon Sep 17 00:00:00 2001 From: Eric Willigers Date: Thu, 27 Aug 2020 07:36:49 -0700 Subject: [PATCH] Direct Sockets: stub implementations for openTCPSocket openUDPSocket The rename is tentative, blocked on naming decision https://github.com/WICG/raw-sockets/issues/10 Explainer: https://github.com/WICG/raw-sockets/blob/master/docs/explainer.md Intent to Prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/ARtkaw4e9T4/m/npjeMssPCAAJ Design doc: https://docs.google.com/document/d/1Xa5nFkIWxkL3hZHvDYWPhT8sZvNeFpCUKNuqIwZHxnE/edit?usp=sharing We introduce IDL methods for opening TCP and UDP sockets. We introduce a mojom service that will perform permission checks before forwarding socket opening requests to the Network Service. Not yet implemented: Permissions checks, calls to Network Service Bug: 909927 Change-Id: Ifec9860d4e0b8211af7b142b856efc29cd6f9b35 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2366395 Reviewed-by: Kinuko Yasuda Reviewed-by: Kentaro Hara Reviewed-by: Matt Falkenhagen Reviewed-by: Glen Robertson Commit-Queue: Eric Willigers Auto-Submit: Eric Willigers Cr-Commit-Position: refs/heads/master@{#802210} --- raw-sockets/META.yml | 5 ++++ raw-sockets/README.md | 2 ++ raw-sockets/open-securecontext.http.html | 21 +++++++++++++++ raw-sockets/remotePort-required.html | 34 ++++++++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 raw-sockets/META.yml create mode 100644 raw-sockets/README.md create mode 100644 raw-sockets/open-securecontext.http.html create mode 100644 raw-sockets/remotePort-required.html diff --git a/raw-sockets/META.yml b/raw-sockets/META.yml new file mode 100644 index 00000000000000..d424a0af6ecc77 --- /dev/null +++ b/raw-sockets/META.yml @@ -0,0 +1,5 @@ +spec: https://github.com/WICG/raw-sockets/blob/master/docs/explainer.md +suggested_reviewers: + - ewilligers + - mgiuca + - phoglenix diff --git a/raw-sockets/README.md b/raw-sockets/README.md new file mode 100644 index 00000000000000..bcebe03c8f8ed9 --- /dev/null +++ b/raw-sockets/README.md @@ -0,0 +1,2 @@ +These tests are for the TCP and UDP sockets API proposed in +https://github.com/WICG/raw-sockets/blob/master/docs/explainer.md diff --git a/raw-sockets/open-securecontext.http.html b/raw-sockets/open-securecontext.http.html new file mode 100644 index 00000000000000..371f13781a4e2b --- /dev/null +++ b/raw-sockets/open-securecontext.http.html @@ -0,0 +1,21 @@ + + + + + Sockets test: Open from non-secure context + + + + + + + + diff --git a/raw-sockets/remotePort-required.html b/raw-sockets/remotePort-required.html new file mode 100644 index 00000000000000..22bba2c1bd37fa --- /dev/null +++ b/raw-sockets/remotePort-required.html @@ -0,0 +1,34 @@ + + + + + Sockets test: open without remotePort + + + + + + +