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(screencast): properly stop screencast on context closure #6146

Merged
merged 2 commits into from Apr 8, 2021

Conversation

yury-s
Copy link
Member

@yury-s yury-s commented Apr 8, 2021

This fixes 'should capture static page in persistent context' in Chromium Headful.

src/server/chromium/crPage.ts Outdated Show resolved Hide resolved
@@ -93,10 +93,6 @@ export abstract class BrowserContext extends SdkObject {
}
this._closedStatus = 'closed';
this._downloads.clear();
for (const [id, video] of this._browser._idToVideo) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why removing this? It does not hurt to cleanup, just in case something went wrong and we leaked stuff.

Copy link
Member Author

Choose a reason for hiding this comment

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

Because this is the reason the test is failing. The video gets removed from the map and after that reportFinished fails.

@yury-s yury-s merged commit 53d50f9 into microsoft:master Apr 8, 2021
@yury-s yury-s deleted the stop-screencast-on-close branch April 8, 2021 21:01
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.

None yet

2 participants