Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web extension concept page: making network requests #23385

Open
rebloor opened this issue Jan 4, 2023 · 0 comments · May be fixed by #37672
Open

Web extension concept page: making network requests #23385

rebloor opened this issue Jan 4, 2023 · 0 comments · May be fixed by #37672
Labels
Content:WebExt WebExtensions docs p1 Major issue with medium priority, should be addressed soon.

Comments

@rebloor
Copy link
Contributor

rebloor commented Jan 4, 2023

MDN URL

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

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

Performing network requests is a very common need in browser extensions, but we don't have a page dedicated to describing the concepts.

MDN has documentation on fetch (https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch), so we only need to explain the relevance of extension-specific details: host permissions, the default CSP, and this mostly applies to cross-origin requests from extension contexts (and not content script contexts, which at least in MV3 do not have elevated cross-origin permissions).

Here is a dated example of Chrome's documentation (using XMLHttpRequest, which is the ancient predecessor to fetch): https://developer.chrome.com/docs/extensions/mv3/xhr/

Also, we bury some permission requirements under https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/host_permissions (and for MV2, https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions). These pages, along with the new CSP section, should be linked from a concept page that explains how to perform a network request.

What did you expect to see?

New making network requests concepts page

Do you have any supporting links, references, or citations?

See #23114

Do you have anything more you want to share?

No response

@rebloor rebloor added Content:WebExt WebExtensions docs p3 labels Jan 4, 2023
@rebloor rebloor self-assigned this Jan 4, 2023
@github-actions github-actions bot added Content:WebAPI Web API docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jan 4, 2023
@rebloor rebloor removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 4, 2023
@Josh-Cena Josh-Cena removed the Content:WebAPI Web API docs label Sep 27, 2023
@rebloor rebloor removed their assignment Nov 20, 2023
@pransh15 pransh15 added p1 Major issue with medium priority, should be addressed soon. and removed p3 labels Aug 28, 2024
@rebloor rebloor linked a pull request Jan 16, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebExt WebExtensions docs p1 Major issue with medium priority, should be addressed soon.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants