From ea7801f73f75d3642c0ec02ab6bbe2f0d1b5d117 Mon Sep 17 00:00:00 2001 From: "Ross A. Wollman" Date: Sun, 5 Dec 2021 13:38:56 -0800 Subject: [PATCH] tests: workaround FF exploding on newPage b/c of contile.services.mozilla.com --- tests/config/proxy.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/config/proxy.ts b/tests/config/proxy.ts index 1b5d953423a27..539e59d998adf 100644 --- a/tests/config/proxy.ts +++ b/tests/config/proxy.ts @@ -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}`; }); }