<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.36.1]</li>
<li>Operating System: [Windows container on GitLab.]</li>
<li>Browser: [Chrome, Chromium]</li>
<li>Other info:</li>
</ul>
<p dir="auto">After upgrading to v1.36.1 I ran the Playwright job in GitLab and I got some error messages and Playwright tests don't run .The errors displayed after running <code class="notranslate">npx playwright install --with-deps</code> and <code class="notranslate">npx playwright install chrome</code></p>
<p dir="auto"><em>Failed to install browsers<br>
Error: Failed to download Chromium 115.0.5790.75 (playwright build v1071), caused by<br>
Error: Download failure, C:\Users\ContainerAdministrator\AppData\Local\ms-playwright\chromium-1071\INSTALLATION_COMPLETE does not exist</em></p>
<p dir="auto">and</p>
<p dir="auto"><em>Failed to install browsers<br>
Error: Failed to download FFMPEG playwright build v1009, caused by<br>
Error: Download failure, C:\Users\ContainerAdministrator\AppData\Local\ms-playwright\ffmpeg-1009\INSTALLATION_COMPLETE<br>
does not exist.</em></p>
<p dir="auto">Currently we are using 1.34.3 and I think it also worked on 1.35 when I tried to upgrade after the last version was out</p>
<p dir="auto">I noticed that there is a FFMPEG message so I also tried <code class="notranslate">npx playwright install ffmpeg</code> but got the same error</p>
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: 1.30.0</li>
<li>Operating System: windows 10</li>
<li>Browser: chromium</li>
</ul>
<h3 dir="auto">Source code</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li>
</ul>




<p dir="auto"><strong>Config file</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts
export default {}"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Test file (self-contained)</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test('asdf', async ({ context, page }) =&gt; {
    await page.setContent(
        &quot;&lt;button onclick=\&quot;window.open('https://www.google.com', '_blank')\&quot;&gt;asdf&lt;/button&gt;&quot;,
    )
    await context.route(/\/asdf/u, () =&gt; {})
    const newPagePromise = context.waitForEvent('page')
    await page.click('button')
    await newPagePromise
})"><pre class="notranslate"><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'asdf'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> context<span class="pl-kos">,</span> page <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">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">setContent</span><span class="pl-kos">(</span>
        <span class="pl-s">"&lt;button onclick=\"window.open('https://www.google.com', '_blank')\"&gt;asdf&lt;/button&gt;"</span><span class="pl-kos">,</span>
    <span class="pl-kos">)</span>
    <span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">route</span><span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\/</span>asdf<span class="pl-c1">/</span>u</span><span class="pl-kos">,</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-kos">}</span><span class="pl-kos">)</span>
    <span class="pl-k">const</span> <span class="pl-s1">newPagePromise</span> <span class="pl-c1">=</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">waitForEvent</span><span class="pl-kos">(</span><span class="pl-s">'page'</span><span class="pl-kos">)</span>
    <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-s">'button'</span><span class="pl-kos">)</span>
    <span class="pl-k">await</span> <span class="pl-s1">newPagePromise</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<p dir="auto"><strong>Steps</strong></p>
<ol dir="auto">
<li>enable "Show browser" in the playwright extension options on vscode's "Testing" tab</li>
<li>click the gutter run button next to the test</li>
</ol>
<p dir="auto"><strong>Expected</strong><br>
test passes</p>
<p dir="auto"><strong>Actual</strong><br>
"Browser has been closed" error<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/57028336/231640800-82fc0a77-f8b3-464c-a8d5-2ea4133d58e2.png"><img src="https://user-images.githubusercontent.com/57028336/231640800-82fc0a77-f8b3-464c-a8d5-2ea4133d58e2.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">this only occurs when running the test through the vscode extension with "Show browser" enabled. the test passes when disabling "Show browser" or when running the test with the <code class="notranslate">playwright test</code> command</p>