Skip to content

Fix web_accessible_resources and link relevant DNR examples#26801

Merged
jpmedley merged 1 commit intomdn:mainfrom
Rob--W:webext-manifest-mv3-war-and-dnr
May 16, 2023
Merged

Fix web_accessible_resources and link relevant DNR examples#26801
jpmedley merged 1 commit intomdn:mainfrom
Rob--W:webext-manifest-mv3-war-and-dnr

Conversation

@Rob--W
Copy link
Copy Markdown
Member

@Rob--W Rob--W commented May 16, 2023

Description

web_accessible_resources had several flaws:

  • The types were not documented to be arrays.
  • It was not obvious which properties were optional.
  • The "Example" section only listed MV2, not MV3.
  • * as value in extension_ids was not documented.
  • The docs states "Paths are ignored.", but that is not the case in any browser, see https://bugzilla.mozilla.org/show_bug.cgi?id=1833415

This PR also links to new examples in the mdn/webextensions-examples repository that demonstrates the use of web_accessible_resources in MV2 and MV3.

Motivation

Additional details

Related issues and pull requests

@Rob--W Rob--W added the Content:WebExt WebExtensions docs label May 16, 2023
@Rob--W Rob--W requested a review from a team as a code owner May 16, 2023 15:54
@Rob--W Rob--W requested review from jpmedley and removed request for a team May 16, 2023 15:54
@github-actions github-actions bot added the Content:Other Any docs not covered by another "Content:" label label May 16, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented May 16, 2023

web_accessible_resources had several flaws:

- The types were not documented to be arrays.
- It was not obvious which properties were optional.
- The "Example" section only listed MV2, not MV3.
- `*` as value in `extension_ids` was not documented.
- The docs states "Paths are ignored.", but that is not the case in
  any browser, see https://bugzilla.mozilla.org/show_bug.cgi?id=1833415

This PR also links to new examples in the mdn/webextensions-examples
repository that demonstrates the use of `web_accessible_resources` in
MV2 and MV3.
@Rob--W Rob--W force-pushed the webext-manifest-mv3-war-and-dnr branch from 2555916 to e4b464e Compare May 16, 2023 15:59
Copy link
Copy Markdown
Collaborator

@jpmedley jpmedley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent! Thank you.

@jpmedley jpmedley merged commit 5d53e8d into mdn:main May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Other Any docs not covered by another "Content:" label Content:WebExt WebExtensions docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants