Skip to content

onMessageExternal API to allow NextPlease to be invoked from other addons #18

@marklieberman

Description

@marklieberman

I have Foxy Gestures user who would like to invoke NextPlease commands via gestures. As I understand, in the pre-FF57 era (when FireGestures still worked) people used to dispatch key events to invoke NextPlease via shortcuts as demonstrated by the script in this issue. However, this doesn't work with web extensions. I don't believe that commands defined in manifest.json will respond to untrusted events dispatched from user scripts.

I've had other addons add or investigate support for an onMessageExternal API such as in: marklieberman/foxygestures#223 and marklieberman/foxygestures#146. In this way I can invoke NextPlease commands using code like runtime.sendMessage(*NextPlease-Extension-ID*, { command: ... }). Would you consider adding support for this type of API or taking a PR?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions