Issue 1:
System info

Playwright Version: [v1.33.0] (Java)

Operating System: [macOS 13.4.1]

Browser: [Firefox]

Other info: M1 architecture

Source code

I provided exact source code that allows reproducing the issue locally.

detailed logs attached

In Firefox only (not Chromium, Webkit), a click action fails with a timeout because something in the browser seems to crash.

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.

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.

The clicking code:

accountMenu.locator("button[role='menuitem']:has-text('power_settings_new')").click(
new Locator.ClickOptions().setNoWaitAfter(true)
);

where accountMenu is another Locator.

I am always in headed mode (cannot use headless because I use WebGL, which doesn't work in headless Firefox).

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.

2023-06-27T14:48:49.644Z pw:api => 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 <button tabindex="0" role="menuitem" mat-menu-item="" ar…>…</button>
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 <= Frame.click failed

I added noWaitAfter: true to the click, but it didn't help (the logs are from the run with noWaitAfter=true).

Using a slowMo 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).

I cannot share the source of the page/server, it is an internal project.

Issue 2:
System info

Playwright Version: [1.24.0]

Operating System: [Windows 10 Pro]

Browser: [Chromium]

Playwright/test Version:[1.33.0]

Bug Description

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.

Expected

browser closing after test is complete

Actual

Test ends, browser closes after 2 minutes.