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

Spec should clarify if data: URLs are allowed as ServiceWorker sources. #262

Closed
nikhilm opened this issue May 2, 2014 · 4 comments
Closed

Comments

@nikhilm
Copy link
Contributor

nikhilm commented May 2, 2014

Are they allowed? I don't remember if we had consensus on it.

@jakearchibald
Copy link
Contributor

Definitely not allowed. Allows for lock-in, and can get your origin hosed (worse than usual) if someone gets to inject JS onto the page.

@calvinmetcalf
Copy link

I'm assuming this would also apply to blob urls?

@jakearchibald
Copy link
Contributor

Yep. The SW script can be cached, but its url must be a network resource.

@annevk
Copy link
Member

annevk commented Jun 16, 2014

This is covered by https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#registration-algorithm (although it needs to define all the things it references much better).

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

No branches or pull requests

5 participants