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
[worklets] Review #396
Comments
cc/ @annevk - So a lot of the environment settings object is complex by the fact there isn't one clear "owner" script.
So I think needs to more or less be this way? I.e. CSS.paintWorklet.addModule('foo/module1.js');
CSS.paintWorklet.addModule('module2.js'); We aren't able to have
I'm not sure what is correct for these two... @mkwst might have some thoughts. |
Well, it's an algorithm, not a static value, so it certainly could. But maybe the right way to think about this is more like |
So part of this is to clamp down on communication channels for the paint api. (in short we don't want any "easy" communication channels out). It's a little weird but not sure what the purpose would be for webaudio either? |
I guess yeah, if you have no ability to e.g. send the error somewhere with fetch(), then having a self.onerror handler isn't super-useful. It still feels wrong to just drop the error into developer tools and never let web devs see it... but I'm not sure what the alternative is. In this case probably what we need is for HTML's "report an exception" to stop assuming the global is always an EventTarget. In the meantime you should probably add a monkeypatch note to worklets saying something like
|
Remote debugging. We probably do want to enable that I think, especially as things get closer to the metal. |
This is an overdue review of the latest changes, e.g. #375 and #381. I decided to just do a read-through of the algorithm portions of the spec, instead of those particularly. I've bolded the significant issues; most are minor.
CSS.paintWorklet.loadModule("foo/bar.js")
should be relative toindex.html
, not relative tofoo/bar.js
?"{{SyntaxError}}" {{DOMException}}
markup so it gets code-ifiedThe text was updated successfully, but these errors were encountered: