Issue with "Match patterns in extension manifests": (invalid match patterns should include example with port number) #5718
Labels
Content:WebExt
WebExtensions docs
good first issue
A good issue for newcomers to get started with.
p4
A minor issue on a Tier 2 MDN doc.
MDN URL: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns
What information was incorrect, unhelpful, or incomplete?
The
host
section specifically states thathost must not include a port number
but that is easily overlooked.Specific section or headline?
host
section andInvalid Match Patterns
sectionWhat did you expect to see?
The
Invalid Match Pattern
should include an example of a host with a port number to show that it will not work as expected.Did you test this? If so, how?
Precondition for both tests: a web server is running on localhost at port 2502.
Test 1:
The following in
manifest.json
will lead to CORS error:Test 2:
The following in
manifest.json
will work (note the absence of the port number):These tests were conducted on Firefox version 89.0 (64-bit) running on Windows 10 Pro, version 10.0.19042 build 19042.
MDN Content page report details
en-us/mozilla/add-ons/webextensions/match_patterns
The text was updated successfully, but these errors were encountered: