<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: 1.12</li>
<li>Operating System: Mac</li>
<li>Node.js version: 14.6</li>
<li>Browser: Firefox</li>
<li>Extra: NA</li>
</ul>


<p dir="auto"><strong>Code Snippet</strong></p>
<p dir="auto">Help us help you! Put down a short code snippet that illustrates your bug and<br>
that we can run and debug locally. For example:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const {firefox} = require('playwright');

(async () =&gt; {
  const browser = await firefox.launch();
  const page = await browser.newPage(&quot;Page with SELF SIGNED certificate&quot;);
  // ...
})();"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span>firefox<span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'playwright'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
  <span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">firefox</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
  <span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-s">"Page with SELF SIGNED certificate"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
  <span class="pl-c">// ...</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">We are facing issues with Self Signed Certificates on firefox and while doing browser.newPage() we are getting SEC_ERROR_UNKNOWN_ISSUER.<br>
Can we allow please fix this behaviour for Self Signed Certificates on firefox?</p>
<p dir="auto">We are facing issues with Self Signed Certificates on firefox and while doing browser.newPage() we are getting SEC_ERROR_UNKNOWN_ISSUER which gets resolved by setting ignoreHTTPSErrors: true.<br>
Can we allow Self Signed Certificates by default or provide an option to pass these as options in launchServer options?</p>
<p dir="auto">Working code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const browser = await firefox.connect({
    wsEndpoint: &quot;ws://127.0.0.1:55614/a4de39415b37282b3f8ee16845753bf8&quot;,
  });

  const context = await browser.newContext({
    ignoreHTTPSErrors: true
  });

  // Use the default browser context to create a new tab and navigate to URL

  const page = await context.newPage();"><pre class="notranslate"><code class="notranslate">const browser = await firefox.connect({
    wsEndpoint: "ws://127.0.0.1:55614/a4de39415b37282b3f8ee16845753bf8",
  });

  const context = await browser.newContext({
    ignoreHTTPSErrors: true
  });

  // Use the default browser context to create a new tab and navigate to URL

  const page = await context.newPage();
</code></pre></div>
<p dir="auto">Not Working:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const browser = await firefox.connect({
  wsEndpoint: &quot;ws://127.0.0.1:55614/a4de39415b37282b3f8ee16845753bf8&quot;,
});

// Use the default browser context to create a new tab and navigate to URL

const page = await browser.newPage();"><pre class="notranslate"><code class="notranslate">const browser = await firefox.connect({
  wsEndpoint: "ws://127.0.0.1:55614/a4de39415b37282b3f8ee16845753bf8",
});

// Use the default browser context to create a new tab and navigate to URL

const page = await browser.newPage();
</code></pre></div>