Open Bug 1911833 Opened 2 months ago Updated 14 hours ago

Implement initial MV3 userScripts API bindings

Categories

(WebExtensions :: General, enhancement, P1)

enhancement

Tracking

(Not tracked)

People

(Reporter: robwu, Assigned: robwu)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [addons-jira])

Attachments

(3 files)

See https://bugzilla.mozilla.org/show_bug.cgi?id=1875475#c3 for details.

In-scope:

  • userScripts.register, userScripts.unregister, userScripts.getScripts()
  • MAIN world only.
  • with persistency. Depends on skv (bug 1909409), but if that is not ready yet we can land with rkv at first and before enabling userScripts by default, switch to skv.
  • Add "userScripts" permission for MV3.

  • Add "userScripts" namespace for MV3, and add schema and logic to make
    sure that this namespace is limited to MV3 only.

  • Add tests to verify that the "userScripts" namespace of MV2 and MV3
    are completely isolated.

  • The functionality in this patch is limited to verifying that the API
    bindings and permission requirement works; the rest of the
    implementation will follow in the next patches.

See Also: → 1919530
Depends on: 1920245
Attachment #9425344 - Attachment description: WIP: Bug 1911833 - Add APIs to register user scripts → Bug 1911833 - Add APIs to register user scripts
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: