Re: [REFERRER] Where does "Determine request’s Referrer" get its URL from?

On Tue, Jul 29, 2014 at 8:27 PM, Ian Hickson <ian@hixie.ch> wrote:
> On Tue, 29 Jul 2014, Anne van Kesteren wrote:
>> It's the thing SW uses to talk back to the environment the fetch
>> originated from.
>
> I don't understand what this means. Can you elaborate?

Say a worker invokes importScripts(). That invokes the service worker.
In the service worker a field named "client" is exposed in either the
event or the Request object associated with the event. That "client"
holds a message channel for the worker.

It's equivalent in a document environment with an <img> or a
background-image in an associated style sheet.


-- 
http://annevankesteren.nl/

Received on Wednesday, 30 July 2014 07:40:34 UTC