https://chat.mozilla.org requires SSO, which does a hidden form post from auth.mozilla.auth0.com to https://mozilla.modular.im/_matrix/saml2/authn_response which then responds with a 302 pointing to the extension url, which obviously fails because the web can't redirect to extension pages. It should be possible to request permissions for mozilla.modular.im when SSO is required and handle the redirection response using webRequest.onHeadersReceived.
https://chat.mozilla.org
requires SSO, which does a hidden form post fromauth.mozilla.auth0.com
tohttps://mozilla.modular.im/_matrix/saml2/authn_response
which then responds with a 302 pointing to the extension url, which obviously fails because the web can't redirect to extension pages. It should be possible to request permissions formozilla.modular.im
when SSO is required and handle the redirection response usingwebRequest.onHeadersReceived
.