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
new ServiceWorkerClient makes no sense? #511
Comments
new ServiceWorkerClient
makes no sense?
new ServiceWorkerClient
makes no sense?
Note: ServiceWorkerClient's constructor is currently out of scope for blink. |
@annevk I'm trying to make the constructor useful & avoid the "secret token" stuff. There could be an option bag with a 'type' property that allows it to be a document/sharedworker. If you try and construct a new sharedworker client, it throws. I suppose that's kinda reintroducing the "secret token" thing, but at least the default would be document & |
Workers already have (remote) constructors. |
I'm nervous about The I'll go with that unless my brain surprises me with a better idea. |
Can't we make sure the objects look roughly similar? After all, it seems like these objects should look roughly similar. |
I believe we've been discussing through it and sorted out the issue. For the original question here, we provide |
So the idea is that
new ServiceWorkerClient
instantiates a newWindow
. However, a Client represents both aWindow
and aWorkerGlobalScope
. This needs to be done some other way I think.The text was updated successfully, but these errors were encountered: