Skip to content

Commit

Permalink
tests: workaround FF exploding on newPage b/c of contile.services.moz…
Browse files Browse the repository at this point in the history
…illa.com
  • Loading branch information
rwoll committed Dec 5, 2021
1 parent 8d342e2 commit ea7801f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/config/proxy.ts
Expand Up @@ -59,6 +59,11 @@ export class TestProxy {
});
this._prependHandler('connect', (req: IncomingMessage) => {
this.connectHosts.push(req.url);
// Relevant to FF only: skip re-writing this request since it requires
// better MITM'ing than the tests require. If you MITM this without setting
// up trusted certs, FF will crash on newPage() if using this Proxy Server.
if (req.url === 'contile.services.mozilla.com:443')
return
req.url = `localhost:${port}`;
});
}
Expand Down

0 comments on commit ea7801f

Please sign in to comment.