From dec4c1882048be85dd5791df91604790e2195133 Mon Sep 17 00:00:00 2001 From: James Graham Date: Mon, 9 May 2022 13:53:35 +0100 Subject: [PATCH 1/2] Add Network module This is designed to support logging network requests. Important use cases include: * Determing if a specific network request occured * Monitoring request performance * Generating a HAR file for offline analysis of requests This does not currently attempt to support network request interception (i.e. mutable access to requests), but the intent is that the same lifecycle events could be used in a blocking way. It also currently only supports HTTP-type requests and not e.g. WebSockets. Some support for integration with service workers is also missing. The typical order of events is network.beforeRequestSent - before request is sent, would later be the right point to change the request headers or body or prevent the request entirely. network.responseStarted - after response headers are received, but before body. Would later be a point to override the response headers or body. network.responseCompleted - after the request is fully complete. network.fetchError - After any error that will prevent the request from completing. Compared to CDP this is missing an event for data being received. Compared to WebExtensions, this is missing an event after the headers are sent but before the data is sent. --- index.bs | 843 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 834 insertions(+), 9 deletions(-) diff --git a/index.bs b/index.bs index 74072750..22bf21ed 100644 --- a/index.bs +++ b/index.bs @@ -170,12 +170,29 @@ spec: HTML; urlPrefix: https://html.spec.whatwg.org/multipage/ text: shared worker; url: workers.html#shared-workers text: window open steps; url: window-object.html#window-open-steps text: worker event loop; url: webappapis.html#worker-event-loop-2 - text: worklet global scopes; url: worklets.html#concept-document-worklet-global-scopes + text: worklet global scopes; url:worklets.html#concept-document-worklet-global-scopes +spec: RESOURCE-TIMING; urlPrefix: https://w3c.github.io/resource-timing/ + type: dfn + text: convert fetch timestamp; url: dfn-convert-fetch-timestamp +spec: HR-TIME; urlPrefix: https://w3c.github.io/hr-time/ + type: dfn + text: get time origin timestamp; url: dfn-get-time-origin-timestamp spec: RFC4648; urlPrefix: https://tools.ietf.org/html/rfc4648 type: dfn text: Base64 Encode; url: section-4 +
+{
+    "SAME-SITE-COOKIES": {
+        "authors": ["Mike West", "Mark Goodwin"],
+        "href": "https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-same-site",
+        "publisher": "IETF",
+        "title": "Same-Site Cookies"
+    }
+}
+
+