-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
32 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters