Advertisement
Guest User

Untitled

a guest
Jul 27th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1.  
  2. Approach:
  3. * The service worker manager will send a message to constellation with, its sender and a pipeline id, and a scope_url.
  4.  
  5. * The constellation on receiving the message will find the pipeline and send a message to its containing script thread
  6. passing the SW manager sender.
  7.  
  8. * The `script_thread` on receiving the message will query its TLS `ServiceWorkerRegistration` (by `scope_url`) and retrieve the `Trusted<ServiceWorker>` by calling `get_trusted_worker()` on `ServiceWorkerRegistration` object , and send the `Trusted<ServiceWorker>` to the SW manager using the sender which it gets from the constellation.
  9.  
  10. So is this approach going in right direction ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement