This gist contains a WebExtension that tests how the browser that runs it handles ports host permission patterns.
- (optional) Create a new browser profile to ensure that this test runs in a clean environment.
- Load this extension in your browser.
- Start a debug session for the extension's background context.
- (optional) Diable "debug" or "verbose" log messages
- Check if your browser auto-upgrades HTTP requests to HTTPS by calling
testHttpUpgrades()
in the console. If you see a console message that says "Your browser auto-upgraded one or more HTTP requests to HTTPS!", consult the HTTPs Upgrades section below.