Skip to content

WebIDL callbacks should root themselves #14447

Closed

Description

@jdm

The codegen for a WebIDL callback yields Rc<CallbackType>. This value isn't safe because its reflector doesn't get added to any stack root list. We should make this behave like promises, which include a permanent root that only is removed when the final Rust promise object is destroyed.

Activity

  1. added
    A-content/bindings
    I-safety
    on Dec 3, 2016
  2. self-assigned this
    on Jan 6, 2017
  3. added 3 commits that reference this issue on Jan 12, 2017
    7dc3a6b
    ad2beb6
    e891277
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-content/bindingsI-safety

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions