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

On Wed, Jul 30, 2014 at 9:30 PM, Ian Hickson <ian@hixie.ch> wrote:
> On Wed, 30 Jul 2014, Anne van Kesteren wrote:
>> 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.
>
> I still don't understand. What do you mean by "field"? Like, an IDL
> attribute? What do you mean by "message channel", do you mean a
> MessagePort? What do you mean by "for the worker"? I don't understand how
> any of this would have an equivalent for <img> or CSS.

Specifically, an attribute on the event object that returns a client
object: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#client


> Are we talking about a concrete object visible to script, or a spec
> mechanism for communication?

Both.


-- 
http://annevankesteren.nl/

Received on Thursday, 31 July 2014 13:17:47 UTC