Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can unregister()'s same-origin check ever fail? #1305

Open
wanderview opened this issue Apr 20, 2018 · 0 comments
Open

how can unregister()'s same-origin check ever fail? #1305

wanderview opened this issue Apr 20, 2018 · 0 comments

Comments

@wanderview
Copy link
Member

Currently the first step of unregister is:

1. If the origin of job’s scope url is not job’s client's origin, then:
  1. Invoke Reject Job Promise with job and "SecurityError" DOMException.
  2. Invoke Finish Job with job and abort these steps.

In this case the scope URL is the scope from the ServiceWorkerRegistration. For this to fail a ServiceWorkerRegistration would have to be exposed in a cross-origin client context.

That doesn't seem possible... And if it is, there are probably bigger problems we need to fix.

Can we remove these steps from the spec?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant