Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid browser hanging on close window while video is recording (closes #6037) #6800

Merged
merged 2 commits into from Mar 29, 2022

Conversation

AlexKamaev
Copy link
Contributor

@AlexKamaev AlexKamaev commented Dec 24, 2021

Closes #6037

@AlexKamaev AlexKamaev temporarily deployed to CI December 24, 2021 10:59 Inactive
@AlexKamaev AlexKamaev temporarily deployed to CI December 24, 2021 14:18 Inactive
@AlexKamaev AlexKamaev temporarily deployed to CI December 27, 2021 13:36 Inactive
@AlexKamaev AlexKamaev closed this Dec 27, 2021
@AlexKamaev AlexKamaev reopened this Dec 27, 2021
@AlexKamaev AlexKamaev temporarily deployed to CI December 27, 2021 14:07 Inactive
@AlexKamaev AlexKamaev closed this Dec 27, 2021
@AlexKamaev AlexKamaev reopened this Dec 27, 2021
@AlexKamaev AlexKamaev temporarily deployed to CI December 27, 2021 14:15 Inactive
@AlexKamaev AlexKamaev closed this Dec 28, 2021
@AlexKamaev AlexKamaev reopened this Dec 28, 2021
@AlexKamaev AlexKamaev temporarily deployed to CI December 28, 2021 08:30 Inactive
@AlexKamaev AlexKamaev marked this pull request as ready for review January 11, 2022 08:47
@@ -184,6 +186,15 @@ export default class BrowserConnectionGateway {
}
}

private static _onCloseWindowRequest (req: IncomingMessage, res: ServerResponse, connection: BrowserConnection): void {
if (BrowserConnectionGateway._ensureConnectionReady(res, connection)) {
connection.provider.closeBrowserChildWindow(connection.id)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we catch errors of the connection.provider.closeBrowserChildWindow method here?

await this.setClientInactive();

// NOTE: delay browser window closing
await delay(100);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use here a more stable way to check that window is closed?

@@ -153,4 +153,8 @@ export default class BrowserProviderPluginHost {
getConfig (value) {
return value;
}

closeBrowserChildWindow (/*browserId*/) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

async closeBrowserChildWindow (/*browserId*/) {}

@AlexKamaev AlexKamaev temporarily deployed to CI February 8, 2022 14:31 Inactive
@AndreyBelym AndreyBelym changed the title fix browser hanging on close window while video is recording fix browser hanging on close window while video is recording (closes #6037) Feb 14, 2022
@AndreyBelym
Copy link
Contributor

/rebase

@AndreyBelym
Copy link
Contributor

/rebase

@AndreyBelym AndreyBelym temporarily deployed to CI March 25, 2022 08:28 Inactive
@AndreyBelym AndreyBelym changed the title fix browser hanging on close window while video is recording (closes #6037) fix: avoid browser hanging on close window while video is recording (closes #6037) Mar 29, 2022
@AndreyBelym AndreyBelym merged commit 2fd5a5e into DevExpress:master Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Testcase hangs after expecting in two different windows. Testcafe V1.12 Chrome 89.
3 participants