You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-content/scriptRelated to the script threadB-interesting-projectRepresents work that is expected to be interesting in some fashionC-assignedThere is someone working on resolving the issue
Currently there's a generic script event loop sender for all non-specialized script events (ie. those that do not come from devtools, constellation, etc.) Like #503 we should add additional senders for each task source the spec defines and provide convenient APIs to allow people implementing DOM specs to do the right thing.
Note that this will likely be more complex than the generic select mechanism we currently use in the script event loop, due to ordering concerns about queued events in multiple task sources.
I recommend we start by defining methods on Window/ScriptTask/GlobalRef for specific task sources (DOM, network, user input, etc.) and making them return the existing script channel, then finding callers of script_chan() that should be using those specific task sources and having them call the methods to get their channel.
Yes, that sounds like a good first PR with a lot of elbow-grease.
After that, I was thinking that we may want to create new message enums (similar to the style for the constellation) for each individual task source. Does that sound good to you?
I think this is essentially done except for HistoryTraversalTaskSource (which is still currently a stub using the ScriptChan trait) which is tracked in #10994 and other various small task sources littered around the spec.
A-content/scriptRelated to the script threadB-interesting-projectRepresents work that is expected to be interesting in some fashionC-assignedThere is someone working on resolving the issue
Activity
jdm commentedon Oct 10, 2015
https://html.spec.whatwg.org/multipage/webappapis.html#generic-task-sources
Then again, the spec says:
"Select the oldest task on one of the event loop's task queues, if any, ignoring, in the case of a browsing context event loop, tasks whose associated Documents are not fully active. The user agent may pick any task queue."
Which suggests that only ordering inside of any given queue matters.
KiChjang commentedon Dec 4, 2015
Sounds interesting, I'm taking a look into this.
jdm commentedon Dec 4, 2015
This would be super valuable!
jdm commentedon Dec 4, 2015
I recommend we start by defining methods on Window/ScriptTask/GlobalRef for specific task sources (DOM, network, user input, etc.) and making them return the existing script channel, then finding callers of
script_chan()that should be using those specific task sources and having them call the methods to get their channel.KiChjang commentedon Dec 4, 2015
Yes, that sounds like a good first PR with a lot of elbow-grease.
After that, I was thinking that we may want to create new message enums (similar to the style for the constellation) for each individual task source. Does that sound good to you?
jdm commentedon Dec 4, 2015
Yep!
Auto merge of #8853 - KiChjang:generic-task-sources, r=<try>
Auto merge of #8853 - KiChjang:generic-task-sources, r=jdm
Auto merge of #8871 - KiChjang:task-source-channels, r=<try>
Auto merge of #8871 - KiChjang:task-source-channels, r=KiChjang
Auto merge of #9217 - KiChjang:dom-manipulation-msg, r=jdm
Auto merge of #10714 - KiChjang:user-interaction-task, r=Ms2ger
Auto merge of #10714 - KiChjang:user-interaction-task, r=Ms2ger
Auto merge of #12448 - jdm:file-reading-task-source-2, r=KiChjang
KiChjang commentedon Dec 11, 2016
I think this is essentially done except for HistoryTraversalTaskSource (which is still currently a stub using the ScriptChan trait) which is tracked in #10994 and other various small task sources littered around the spec.