Skip to content

Standardize Firefox exportFunction() and cloneInto() #75

@minfrin

Description

@minfrin

Firefox offers two functions that enable functionality and/or objects present in a content script to be exposed in a controlled fashion to a webpage.

This mechanism keeps the security separation between the webpage and content script, while allowing webpages to access functionality defined in a web extension.

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Sharing_objects_with_page_scripts#exportfunction

Standardise this (or a suitable variation) for all browsers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions