Re: [w3c/ServiceWorker] service worker client definition is redundant (#1046)

Note that we have some places in the algorithms where the logic branches depending on the types: https://github.com/w3c/ServiceWorker/commit/4ce01b53aa96982610c5a671808fae0967b69094#diff-27b79860afe28f01aed4f1f6228367faR1278. (In this particular case, an environment doesn't make sense for checking of the secure context.) To deal with this sort of requirements with polymorphic approach, we'd have to define the algorithms on the base type and override them on the sub type (assuming the polymorphic behavior works for the specs in the first place.)

-- 
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/1046#issuecomment-270053194

Received on Tuesday, 3 January 2017 05:15:57 UTC