W3C home > Mailing lists > Public > public-webappsec@w3.org > July 2014

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

From: Anne van Kesteren <annevk@annevk.nl>
Date: Thu, 31 Jul 2014 15:17:16 +0200
Message-ID: <CADnb78iP=sD5OUT8q9Z9jhNyrgifa=gxwSXgVjHavQEr13+aQw@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: WebAppSec WG <public-webappsec@w3.org>
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

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:54:06 UTC