Re: [w3c/ServiceWorker] Match Service Worker Registration should assert same-origin? (#1118)

I think comparing the serialized URLs would be better here. The registration matching is a prefix-based string matching rather than a path structural. So, we'd have to compare the strings for the paths at the end anyway. Also, parsing the given URLs to the `register()` API and serializing them in the matching algorithm nicely abstract away the details of the URL comparison. (URL standard doesn't provide a URL equality check algorithm itself, either.)

-- 
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/1118#issuecomment-299139037

Received on Thursday, 4 May 2017 09:38:28 UTC