Skip to content

Make Dart Plugin Registrant idempotent #99444

@gaaclarke

Description

@gaaclarke

After flutter/engine#31720 the Dart Plugin Registrant can be executed manually. As long as it is only executed on background isolates it is idempotent. If someone however accidentally executes it from the root isolate, the registrant would be executed twice and it would be an error.

If we move the guard that makes it idempotent from dart:ui into the generated code, we can make sure that executing it form the root isolate multiple times is not an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: pluginsSupport for writing, building, and running plugin packagesteam-engineOwned by Engine teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions