<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.33.0] (Java)</li>
<li>Operating System: [macOS 13.4.1]</li>
<li>Browser: [Firefox]</li>
<li>Other info: M1 architecture</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"> I provided exact source code that allows reproducing the issue locally.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> detailed logs attached</li>
</ul>




<p dir="auto">In Firefox only (not Chromium, Webkit), a click action fails with a timeout because something in the browser seems to crash.<br>
The click leads to a navigation, with a redirect. That succeeds, I can see that in headed mode. But Playwright apparently does not get a success message back from the browser, and times out.</p>
<p dir="auto">During a test, I use the button (a logout button) multiple times, and it does not fail on the first time, but on some subsequent one; but reproducibly on always the same! This maybe suggests that it's not a race, but some other underlying problem.</p>
<p dir="auto">The clicking code:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="accountMenu.locator(&quot;button[role='menuitem']:has-text('power_settings_new')&quot;).click(
        new Locator.ClickOptions().setNoWaitAfter(true)
    );"><pre class="notranslate"><span class="pl-s1">accountMenu</span>.<span class="pl-en">locator</span>(<span class="pl-s">"button[role='menuitem']:has-text('power_settings_new')"</span>).<span class="pl-en">click</span>(
        <span class="pl-k">new</span> <span class="pl-smi">Locator</span>.<span class="pl-smi">ClickOptions</span>().<span class="pl-en">setNoWaitAfter</span>(<span class="pl-c1">true</span>)
    );</pre></div>
<p dir="auto">where <code class="notranslate">accountMenu</code> is another <code class="notranslate">Locator</code>.</p>
<p dir="auto">I am always in headed mode (cannot use headless because I use WebGL, which doesn't work in headless Firefox).</p>
<p dir="auto">Logs starting from the click, the timeout is 15s, which you can see that the click is reported as failed after that time, although I can see that the navigation worked.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2023-06-27T14:48:49.644Z pw:api =&gt; Frame.click started
2023-06-27T14:48:49.648Z pw:api waiting for locator(&quot;.mat-menu-panel&quot;).locator(&quot;button[role='menuitem']:has-text('power_settings_new')&quot;)
2023-06-27T14:48:49.650Z pw:api   locator resolved to &lt;button tabindex=&quot;0&quot; role=&quot;menuitem&quot; mat-menu-item=&quot;&quot; ar…&gt;…&lt;/button&gt;
2023-06-27T14:48:49.651Z pw:api attempting click action
2023-06-27T14:48:49.651Z pw:api   waiting for element to be visible, enabled and stable
2023-06-27T14:48:49.672Z pw:api     element is not stable - waiting...
2023-06-27T14:48:49.791Z pw:api   element is visible, enabled and stable
2023-06-27T14:48:49.791Z pw:api   scrolling into view if needed
2023-06-27T14:48:49.791Z pw:api   done scrolling
2023-06-27T14:48:49.795Z pw:api   performing click action
2023-06-27T14:48:49.843Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.843Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.843Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.843Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.843Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.843Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.846Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.846Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.846Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.846Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.846Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.846Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.851Z pw:api   &quot;commit&quot; event fired
2023-06-27T14:48:49.851Z pw:api   navigated to &quot;http://localhost:4200/#&quot;
2023-06-27T14:48:49.953Z pw:api   &quot;domcontentloaded&quot; event fired
2023-06-27T14:48:49.954Z pw:api   &quot;load&quot; event fired
2023-06-27T14:48:50.002Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.003Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.003Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.003Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.003Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.003Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.003Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.006Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.006Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.006Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.006Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.006Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.006Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.006Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.010Z pw:api   &quot;commit&quot; event fired
2023-06-27T14:48:50.010Z pw:api   navigated to &quot;http://localhost:4200/dev-login#state=eyJpZCI6ImQ4Zjc5YzU0LWJhM2MtNGY1NS04MGY1LTJiYTMyMzNjMGMxNSIsIm1ldGEiOnsiaW50ZXJhY3Rpb25UeXBlIjoicmVkaXJlY3QifX0=&quot;
2023-06-27T14:48:50.137Z pw:api   &quot;domcontentloaded&quot; event fired
2023-06-27T14:48:50.137Z pw:api   &quot;load&quot; event fired
2023-06-27T14:48:50.159Z pw:api   navigated to &quot;http://localhost:4200/dev-login#state=eyJpZCI6ImQ4Zjc5YzU0LWJhM2MtNGY1NS04MGY1LTJiYTMyMzNjMGMxNSIsIm1ldGEiOnsiaW50ZXJhY3Rpb25UeXBlIjoicmVkaXJlY3QifX0=&quot;
2023-06-27T14:48:50.653Z pw:api   &quot;networkidle&quot; event fired
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out]       
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out]         ERROR: error in channel &quot;content::9/19/19&quot;: exception while running method &quot;disposeObject&quot; in namespace &quot;page&quot;: Failed to find execution context with id = id-1322 findExecutionContext@chrome://juggler/content/content/Runtime.js:289:13
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out] disposeObject@chrome://juggler/content/content/Runtime.js:120:35
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out] _onMessageInternal@chrome://juggler/content/SimpleChannel.js:222:37
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out] _onMessage@chrome://juggler/content/SimpleChannel.js:191:12
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out] bindToActor/actor.receiveMessage@chrome://juggler/content/SimpleChannel.js:54:44
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out]  _onMessageInternal@chrome://juggler/content/SimpleChannel.js:206:24
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out] _onMessage@chrome://juggler/content/SimpleChannel.js:191:12
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out] bindToActor/actor.receiveMessage@chrome://juggler/content/SimpleChannel.js:54:44
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out] 
2023-06-27T14:49:04.675Z pw:api &lt;= Frame.click failed"><pre class="notranslate"><code class="notranslate">2023-06-27T14:48:49.644Z pw:api =&gt; Frame.click started
2023-06-27T14:48:49.648Z pw:api waiting for locator(".mat-menu-panel").locator("button[role='menuitem']:has-text('power_settings_new')")
2023-06-27T14:48:49.650Z pw:api   locator resolved to &lt;button tabindex="0" role="menuitem" mat-menu-item="" ar…&gt;…&lt;/button&gt;
2023-06-27T14:48:49.651Z pw:api attempting click action
2023-06-27T14:48:49.651Z pw:api   waiting for element to be visible, enabled and stable
2023-06-27T14:48:49.672Z pw:api     element is not stable - waiting...
2023-06-27T14:48:49.791Z pw:api   element is visible, enabled and stable
2023-06-27T14:48:49.791Z pw:api   scrolling into view if needed
2023-06-27T14:48:49.791Z pw:api   done scrolling
2023-06-27T14:48:49.795Z pw:api   performing click action
2023-06-27T14:48:49.843Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.843Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.843Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.843Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.843Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.843Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.846Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.846Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.846Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.846Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.846Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.846Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:49.851Z pw:api   "commit" event fired
2023-06-27T14:48:49.851Z pw:api   navigated to "http://localhost:4200/#"
2023-06-27T14:48:49.953Z pw:api   "domcontentloaded" event fired
2023-06-27T14:48:49.954Z pw:api   "load" event fired
2023-06-27T14:48:50.002Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.003Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.003Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.003Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.003Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.003Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.003Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.006Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.006Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.006Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.006Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.006Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.006Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.006Z pw:browser [pid=5685][err] JavaScript error: chrome://juggler/content/content/FrameTree.js, line 565: TypeError: this.domWindow() is undefined
2023-06-27T14:48:50.010Z pw:api   "commit" event fired
2023-06-27T14:48:50.010Z pw:api   navigated to "http://localhost:4200/dev-login#state=eyJpZCI6ImQ4Zjc5YzU0LWJhM2MtNGY1NS04MGY1LTJiYTMyMzNjMGMxNSIsIm1ldGEiOnsiaW50ZXJhY3Rpb25UeXBlIjoicmVkaXJlY3QifX0="
2023-06-27T14:48:50.137Z pw:api   "domcontentloaded" event fired
2023-06-27T14:48:50.137Z pw:api   "load" event fired
2023-06-27T14:48:50.159Z pw:api   navigated to "http://localhost:4200/dev-login#state=eyJpZCI6ImQ4Zjc5YzU0LWJhM2MtNGY1NS04MGY1LTJiYTMyMzNjMGMxNSIsIm1ldGEiOnsiaW50ZXJhY3Rpb25UeXBlIjoicmVkaXJlY3QifX0="
2023-06-27T14:48:50.653Z pw:api   "networkidle" event fired
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out]       
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out]         ERROR: error in channel "content::9/19/19": exception while running method "disposeObject" in namespace "page": Failed to find execution context with id = id-1322 findExecutionContext@chrome://juggler/content/content/Runtime.js:289:13
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out] disposeObject@chrome://juggler/content/content/Runtime.js:120:35
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out] _onMessageInternal@chrome://juggler/content/SimpleChannel.js:222:37
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out] _onMessage@chrome://juggler/content/SimpleChannel.js:191:12
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out] bindToActor/actor.receiveMessage@chrome://juggler/content/SimpleChannel.js:54:44
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out]  _onMessageInternal@chrome://juggler/content/SimpleChannel.js:206:24
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out] _onMessage@chrome://juggler/content/SimpleChannel.js:191:12
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out] bindToActor/actor.receiveMessage@chrome://juggler/content/SimpleChannel.js:54:44
2023-06-27T14:49:04.658Z pw:browser [pid=5685][out] 
2023-06-27T14:49:04.675Z pw:api &lt;= Frame.click failed
</code></pre></div>
<p dir="auto">I added <code class="notranslate">noWaitAfter: true</code> to the click, but it didn't help (the logs are from the run with noWaitAfter=true).<br>
Using a <code class="notranslate">slowMo</code> of 0 or 100 triggers the problem at exactly the same click (the 3rd time within one test). Using a value of 500 triggers it at a later time (I use the button to log out many times during a test).</p>
<p dir="auto">I cannot share the source of the page/server, it is an internal project.</p>
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [1.24.0]</li>
<li>Operating System: [Windows 10 Pro]</li>
<li>Browser: [Chromium]</li>
<li>Playwright/test Version:[1.33.0]</li>
</ul>
<p dir="auto"><strong>Bug Description</strong><br>
In the test I wrote, the browser stays open for about 2 minutes after the test is completed. There is no such problem in the other tests I wrote. While working on my teammates' computers, the test closes normally. Only on my computer and after only 1 test is completed, browser closes late. What could be the reason for this? Thanks you for your help.</p>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">browser closing after test is complete</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">Test ends, browser closes after 2 minutes.</p>