-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add Worklet to JavaScript agent clusters #4069
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right direction, a few things to fix.
source
Outdated
@@ -88624,14 +88624,14 @@ import "https://example.com/foo/../module2.mjs";</code></pre> | |||
set</span> contains an item whose <span data-x="concept-relevant-realm">relevant Realm</span> | |||
belongs to <var>agent</var>.</p> | |||
|
|||
<p>A <span>similar-origin window agent</span> can share memory with any <span>worklet agent | |||
</span> whose single <span data-x="JavaScript realm">realm</span>'s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No space and newline before the </span>
. We're linking "worklet agent"
, not "worklet agent\n "
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
source
Outdated
@@ -88624,14 +88624,14 @@ import "https://example.com/foo/../module2.mjs";</code></pre> | |||
set</span> contains an item whose <span data-x="concept-relevant-realm">relevant Realm</span> | |||
belongs to <var>agent</var>.</p> | |||
|
|||
<p>A <span>similar-origin window agent</span> can share memory with any <span>worklet agent | |||
</span> whose single <span data-x="JavaScript realm">realm</span>'s | |||
<span data-x="concept-realm-global">global object</span>'s <span>owner set</span>'s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WorkletGlobalScopes don't have owner sets; they have owner documents. You'll want to change the text, and introduce a cross-spec reference around line 4125ish ("The following feature is defined in the Worklets specification").
See https://github.com/whatwg/wattsi/blob/master/Syntax.md#cross-specification-cross-references for more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The definition should be in the definitions section, and the reference to it should be here. I'll push a commit so you can see what I mean for next time :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to know. Thanks for the review!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I addressed your comments. Thanks!
Still unsure how to write a web-platform-test for this. WDYT @binji?
A success test should be pretty close to the repro here: https://bugs.chromium.org/p/chromium/issues/detail?id=892067. Not sure about a failure test, though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending tests!
Not sure about the order of tasks. The implementation change needs the spec change, but the spec change here is waiting for tests (which will be a part of the CL)? Or do we need another reviewer to come and take a look for the actual merge? |
You can land implementation and test changes based off of spec PRs, not just final specs. Especially if they're approved spec PRs :). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with that nit. This also needs implementer bugs, though maybe only Chrome and Firefox are somewhat affected here?
source
Outdated
@@ -88624,14 +88625,15 @@ import "https://example.com/foo/../module2.mjs";</code></pre> | |||
set</span> contains an item whose <span data-x="concept-relevant-realm">relevant Realm</span> | |||
belongs to <var>agent</var>.</p> | |||
|
|||
<p>A <span>similar-origin window agent</span> can share memory with any <span>worklet agent</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should link "can share memory with", no?
@annevk You meant that the bug should be noted somewhere in the spec? FWIW, Chrome's tracking bug and the patch with a test. |
@hoch as part of https://whatwg.org/working-mode#changes we require filing bugs on all affected implementers, either before or shortly after merging. (@annevk tends to prefer before.) But, I'm not sure which implementers are affected---do others besides Chrome implement AudioWorklet? If so we should file a bug on their tracker; see https://github.com/whatwg/meta/blob/master/MAINTAINERS.md#handling-pull-requests for more info. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good! (And no need for a Firefox bug. Guess it's just tests at this point.)
I think we flipped all the bits. Can we merge this PR now? |
Fixes w3c/css-houdini-drafts#380. Mostly it expands the current text to include Worklet agent to the clusters.
This PR was drafted from the discussion here.
cc @domenic
/infrastructure.html ( diff )
/webappapis.html ( diff )