[w3c/ServiceWorker] Remove fragment identifiers from script url and scope url (#1251)

The spec and the implementations did not agree on the behavior: the spec
didn't remove fragment identifiers and had ServiceWorker.scriptURL and
ServiceWorkerRegistration.scope return urls without stripping them.
Chrome, Firefox, and Edge don't return fragments.

This changes the spec to remove the fragment indentifiers from the
script url and scope url given to register() method before storing them,
in order to match the implementations.

Fixes #1249.
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/ServiceWorker/pull/1251

-- Commit Summary --

  * Remove fragment identifiers from script url and scope url

-- File Changes --

    M docs/index.bs (10)
    M docs/v1/index.bs (10)

-- Patch Links --

https://github.com/w3c/ServiceWorker/pull/1251.patch
https://github.com/w3c/ServiceWorker/pull/1251.diff

-- 
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/pull/1251

Received on Tuesday, 19 December 2017 08:23:22 UTC