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

This question is raised when [I tried to fix a flaky test in Chromium](https://chromium-review.googlesource.com/c/chromium/src/+/1775945/2#message-5d9da3589cc48a864140d3775ec561d384728012).

Currently we use an ordered map for scope to registration map but don't use the sort operation before iterating over the map (step 3.2 in [the spec of getRegistrations()](https://w3c.github.io/ServiceWorker/#navigator-service-worker-getRegistrations)). This means that the order of the scope to registration map is FIFO.
Should we change it to sort the registration map before iteration, or is FIFO better in this case?
Do you have any thoughts?



-- 
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

Received on Friday, 30 August 2019 02:37:01 UTC