ServiceWorker
58fd4671 - Remove fragment identifiers from script url and scope url (#1251)

Commit
8 years ago
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() and getRegistration() before storing them, in order to match the implementations. Fixes #1249.
Author
Parents
Loading