- From: Ian Hickson <ian@hixie.ch>
- Date: Wed, 30 Jul 2014 19:30:39 +0000 (UTC)
- To: Anne van Kesteren <annevk@annevk.nl>
- cc: WebAppSec WG <public-webappsec@w3.org>
On Wed, 30 Jul 2014, Anne van Kesteren wrote: > 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. 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. Are we talking about a concrete object visible to script, or a spec mechanism for communication? -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 30 July 2014 19:31:02 UTC