[w3c/ServiceWorker] respondWith uses the wrong targetRealm (#1055)

Since 6c2b3f18c5aad509635bd81f4931132c26514bb6 both `FetchEvent.respondWith` and `ForeignFetchEvent.respondWith` say

>        1. Let |targetRealm| be the <a>relevant Realm</a> of the <a>context object</a>.

But the [relevant Realm](https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-realm) of the context object is always going to be the service worker itself, isn't it?

It looks like targetRealm should be '`event.request`'s request's client's Realm.'

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1055

Received on Monday, 16 January 2017 00:30:03 UTC