Skip to content

Implement microtasks #4283

Closed
Closed

Activity

  1. added
    A-content/dom
    on Dec 8, 2014
  2. tetsuharuohzeki commented on Feb 18, 2015

    @tetsuharuohzeki
    ContributorAuthor

    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:

    • 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.

  3. jdm commented on Feb 28, 2015

    @jdm
    Member

    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
    • after executing a <script>
    • after evaluating a javascript: URL
    • after invoking a timer with a string argument
    • after running a dedicated worker script
    • when running a dedicated worker event loop
    • after importing a script in a dedicated worker

    Since 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?

  4. jwilm commented on Apr 23, 2015

    @jwilm
    Contributor

    Hello! Is this available to work on? There's been no activity for some time.

  5. jdm commented on Apr 23, 2015

    @jdm
    Member

    @jwilm Absolutely! Shout if you have any concerns or questions!

  6. added
    C-assigned
    on Apr 23, 2015
  7. jwilm commented on Apr 23, 2015

    @jwilm
    Contributor

    Great! I'll probably be needing feedback on the design before getting too far into building.

    Thanks @jdm.

  8. tetsuharuohzeki commented on Apr 24, 2015

    @tetsuharuohzeki
    ContributorAuthor

    @jdm @jwilm I'm working on this....

  9. jwilm commented on Apr 24, 2015

    @jwilm
    Contributor

    @saneyuki Oops! Sorry for trying to steal your project 😝. I think servo has at least a few other issues available for me.

  10. jdm commented on Apr 24, 2015

    @jdm
    Member

    Oh, sorry @saneyuki!

  11. removed
    C-assigned
    on Apr 24, 2015
  12. tetsuharuohzeki commented on Apr 24, 2015

    @tetsuharuohzeki
    ContributorAuthor

    @jdm @jwilm I also apologize I haven't written an activity. It led misinterpretation.

  13. 4 remaining items

  14. jdm commented on Jul 18, 2016

    @jdm
    Member

    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.

  15. added 3 commits that reference this issue on Aug 24, 2016
  16. added a commit that references this issue on Sep 6, 2016
  17. added 2 commits that reference this issue on Sep 21, 2016
  18. assigned and unassigned on Jan 6, 2017
  19. added 3 commits that reference this issue on Jan 25, 2017
    534ca6d
    af725e3
  20. added a commit that references this issue on Feb 3, 2017
    cbcafd1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-content/dom

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions