Match Patterns (https://developer.chrome.com/extensions/match_patterns) are implemented in the codebase as URLPatterns. URLPatterns support ports. However, they need a bit of help.
- Parsing fails for certain patterns that seem like they should succeed. e.g. "http://*:80/*" (match any http host on port 80) fails to parse.
- Parsing doesn't allow ports with a wildcard scheme, even though the wildcard scheme deduces to http | https - both of which support ports.
- The documentation actually makes no mention of ports being supported.
I probably won't get to this at any point in the near future, and don't consider it pressing, but it would be nice to eventually fix.
Comment 1 by bugdroid1@chromium.org
, Feb 23 2018