Skip to content

Commit f4915e6

Browse files
mikewestjakearchibald
authored andcommitted
Drop 'potential-navigation-or-subresource request'. (#1486)
https://github.com/whatwg/fetch/pull/948/files is changing `<embed>` and `<object>` 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.
1 parent c4661d0 commit f4915e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2245,7 +2245,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
22452245

22462246
The implementers are encouraged to note:
22472247

2248-
* 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 <a>Handle Fetch</a> algorithm makes the <a>potential-navigation-or-subresource request</a> (whose context is either <code>&lt;embed&gt;</code> or <code>&lt;object&gt;</code>) immediately fallback to the network without dispatching {{fetch!!event}} event.
2248+
* 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 <a>Handle Fetch</a> algorithm makes <code>&lt;embed&gt;</code> and <code>&lt;object&gt;</code> requests immediately fallback to the network without dispatching {{fetch!!event}} event.
22492249
* Some of the legacy networking stack code may need to be carefully audited to understand the ramifications of interactions with [=/service workers=].
22502250
</section>
22512251

@@ -2932,7 +2932,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
29322932
1. Let |preloadResponse| be a new [=promise=].
29332933
1. Let |fetchInstance| be the instance of the [=/fetch=] algorithm representing the ongoing fetch.
29342934
1. Assert: |request|'s [=request/destination=] is not "<code>serviceworker</code>".
2935-
1. If |request| is a <a>potential-navigation-or-subresource request</a>, then:
2935+
1. If |request|'s [=request/destination=] is either "<code>embed</code>" or "<code>object</code>", then:
29362936
1. Return null.
29372937
1. Else if |request| is a <a>non-subresource request</a>, then:
29382938

0 commit comments

Comments
 (0)