HomePhabricator Dev

Bug 1613571. Align service worker invalid-script-url and invalid-scope-url…

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Bug 1613571. Align service worker invalid-script-url and invalid-scope-url checks better with the spec. r=dom-workers-and-storage-reviewers,perry

Behavior changes:

  1. We now throw a TypeError, not a SecurityError, when the script URI scheme is

not 'http' or 'https', like the spec says to.

  1. We now throw when the scope URI scheme is not 'http' or 'https', like the

spec says to.

  1. We now throw a proper TypeError, not a DOMException, at the end of

CheckForSlashEscapedCharsInPath.

  1. More informative error messages.

Differential Revision: https://phabricator.services.mozilla.com/D61782

Details

Provenance
bzbarskyAuthored on

Commit No Longer Exists

This commit no longer exists in the repository.