From f4915e6e035bdcdd3b24debf79b08b9ca9e73451 Mon Sep 17 00:00:00 2001 From: Mike West Date: Fri, 13 Dec 2019 12:23:49 +0100 Subject: [PATCH] Drop 'potential-navigation-or-subresource request'. (#1486) https://github.com/whatwg/fetch/pull/948/files is changing `` and `` requests to look more like navigations than subresource requests. As a result, it seems reasonable for service worker to explicitly carve out those request destinations which have behavior service worker cares about, rather than relying on a fetch-level concept that doesn't make sense in the new model. --- docs/index.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.bs b/docs/index.bs index a4da4a23..42df337a 100644 --- a/docs/index.bs +++ b/docs/index.bs @@ -2245,7 +2245,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe The implementers are encouraged to note: - * Plug-ins should not load via [=/service workers=]. As plug-ins may get their security origins from their own urls, the embedding [=/service worker=] cannot handle it. For this reason, the Handle Fetch algorithm makes the potential-navigation-or-subresource request (whose context is either <embed> or <object>) immediately fallback to the network without dispatching {{fetch!!event}} event. + * Plug-ins should not load via [=/service workers=]. As plug-ins may get their security origins from their own urls, the embedding [=/service worker=] cannot handle it. For this reason, the Handle Fetch algorithm makes <embed> and <object> requests immediately fallback to the network without dispatching {{fetch!!event}} event. * Some of the legacy networking stack code may need to be carefully audited to understand the ramifications of interactions with [=/service workers=]. @@ -2932,7 +2932,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe 1. Let |preloadResponse| be a new [=promise=]. 1. Let |fetchInstance| be the instance of the [=/fetch=] algorithm representing the ongoing fetch. 1. Assert: |request|'s [=request/destination=] is not "serviceworker". - 1. If |request| is a potential-navigation-or-subresource request, then: + 1. If |request|'s [=request/destination=] is either "embed" or "object", then: 1. Return null. 1. Else if |request| is a non-subresource request, then: