Re: [w3c/ServiceWorker] Should the order of registrations returned by getRegistrations() be sorted by scope? (#1465)

I think it's insertion-order dependent in that case, which makes it undesirable after all.

For sanity of tests, I think the current spec of ordering based on the serialized scope is perhaps best.  Actual insertion order depends on invocation of [Set Registration](https://w3c.github.io/ServiceWorker/#set-registration) invoked from inside [Register](https://w3c.github.io/ServiceWorker/#ref-for-set-registration) which happens from inside the per-scope job queue which is triggered _in parallel_ from [Run Job](https://w3c.github.io/ServiceWorker/#ref-for-register%E2%91%A1) queuing a task on an unnamed task source.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1465#issuecomment-527196632

Received on Monday, 2 September 2019 16:14:54 UTC