Re: [w3c/payment-handler] Only allows instrument.set() in active service worker (#224)

Thank you for reviews and I'm sorry for delayed reply.
I was on long vacations last week.

This pull request is initiated from #223. The problem would not have happened before (https://github.com/w3c/payment-handler/commit/bfe952bfccf45a696f8b8dd3248cd34053c02ac2).
Because there was a spec text that it should wait for waiting/installing worker to become its active worker. We guessed the spec text was removed mistakenly. So, I'd like to restore the spec text from the large change.

One solution is `navigator.serviceWorker.ready` but it's not perfect.
For examples, there are the following issues:
  - What happens when calling register()/set() in redaundant service worker?
  - What happens in case of multiple registrations?

I think this patch can resolve them.

-- 
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/payment-handler/pull/224#issuecomment-365867341

Received on Thursday, 15 February 2018 09:16:19 UTC