Re: [ServiceWorker] Invoke the has focus steps instead of hasFocus() method directly. Fixes #633. (3d0ee14)

So, the capture operation is run in the client's event loop (in the queued task) but the captured `WindowClient` object is finally returned as the value the returned promise resolve with in the service worker environment. Does this seem wrong?

Once, back then, I asked you whether returning a promise in a thread and resolving a promise from a different thread (in a queued task) is fine, and that seemed okay.

I'm curious there would be a clearer way to spec it. If so, I'd like to refine it. Also, I'm getting my head around how to do the Capture Window Client in Clients.matchAll().

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/commit/3d0ee145e27bcaf725ae3050759893c2daf3e363#commitcomment-14180778

Received on Wednesday, 4 November 2015 12:13:31 UTC