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
From the above, we would be able to implement the concept of "Perform a microtask checkpoint" in these point:
When creating a script from dom strings, script element, etc (as creating scripts).
After run the task (in event loop).
By D3E spec, each independent device, such as a mouse or keyboard, SHOULD be treated as a task source which feeds into the appropriate task queue. So I think we can treat the case of a event handler as a task in event loop.
@Ms2ger@jdm I'm worry about my understanding to implement this concept. If you find a my mistake, please let me know.
Sorry for taking so long to reply to this; I had trouble finding the time to read through the references. I think you're on the right track, but here are the list of places that could trigger a microtask checkpoint right now, according to my reading of the spec (based on searches for "code entry-point" and "create a script"):
after running a task from one of the HTML5 task sources (such as an input event)
when returning to the event loop and there are no tasks to run
Another problem with the branch that @mmatyas encountered - AutoExecutionStack decreases the entrance counter value in its destructor, but the value is never increased anywhere, so we get underflow panics.
Activity
tetsuharuohzeki commentedon Feb 18, 2015
By the current spec, I read the following point would be "perform a microtask checkpoint.
From the above, we would be able to implement the concept of "Perform a microtask checkpoint" in these point:
each independent device, such as a mouse or keyboard, SHOULD be treated as a task source which feeds into the appropriate task queue. So I think we can treat the case of a event handler as a task in event loop.@Ms2ger @jdm I'm worry about my understanding to implement this concept. If you find a my mistake, please let me know.
jdm commentedon Feb 28, 2015
Sorry for taking so long to reply to this; I had trouble finding the time to read through the references. I think you're on the right track, but here are the list of places that could trigger a microtask checkpoint right now, according to my reading of the spec (based on searches for "code entry-point" and "create a script"):
<script>javascript:URLSince the spec explicitly talks about following the WebIDL steps for invoking a callback (http://heycam.github.io/webidl/#es-invoking-callback-functions), it looks like web content event handlers do not cause a microtask checkpoint to be performed.
Does this make sense to you?
jwilm commentedon Apr 23, 2015
Hello! Is this available to work on? There's been no activity for some time.
jdm commentedon Apr 23, 2015
@jwilm Absolutely! Shout if you have any concerns or questions!
jwilm commentedon Apr 23, 2015
Great! I'll probably be needing feedback on the design before getting too far into building.
Thanks @jdm.
tetsuharuohzeki commentedon Apr 24, 2015
@jdm @jwilm I'm working on this....
jwilm commentedon Apr 24, 2015
@saneyuki Oops! Sorry for trying to steal your project 😝. I think servo has at least a few other issues available for me.
jdm commentedon Apr 24, 2015
Oh, sorry @saneyuki!
tetsuharuohzeki commentedon Apr 24, 2015
@jdm @jwilm I also apologize I haven't written an activity. It led misinterpretation.
4 remaining items
jdm commentedon Jul 18, 2016
Another problem with the branch that @mmatyas encountered - AutoExecutionStack decreases the entrance counter value in its destructor, but the value is never increased anywhere, so we get underflow panics.
jdm commentedon Jul 18, 2016
https://html.spec.whatwg.org/multipage/webappapis.html#prepare-to-run-script is the missing step there.
Auto merge of #12830 - jdm:promises, r=<try>
Auto merge of #12830 - jdm:promises, r=<try>
Auto merge of #12830 - jdm:promises, r=<try>
Auto merge of #12830 - jdm:promises, r=<try>
Auto merge of #12830 - jdm:promises, r=<try>
Auto merge of #12830 - jdm:promises, r=Ms2ger
Auto merge of #15189 - jdm:microtasks, r=<try>
Auto merge of #15189 - jdm:microtasks, r=<try>
Auto merge of #15189 - jdm:microtasks, r=nox