Skip to content

permissions and host_permissions auto-collecting #379

Closed

Description

@honwhy

permissions and host_permissions auto-collecting

In defineContentScript or defineBackgound, excel from matches which is auto collecting into manifest.content_scripts[i].matches, how about define another keys permission, host_permissions, and auto collect them and deduplicate so as to generate manifest.permissions or host_permissions in mv3 style.

Is your feature request related to a bug?

"N/A"

What are the alternatives?

alternative solutions, is defined permissions, host_persmissions and web_accessible_resources according to mv2 or mv3 request.

Additional context

ex,

export default defineContentScript({
  matches: ['https://*.blog.csdn.net/**'],
  permission: [],
  host_permissions: [],
  main(ctx) {
   ...
  },
})

Activity

  1. aklinker1 commented on Mar 12, 2024

    @aklinker1
    Member

    Closing in favor of #544, which includes these fields and others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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