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: report new window downloads #2019

Merged
merged 3 commits into from
Apr 30, 2020
Merged

fix: report new window downloads #2019

merged 3 commits into from
Apr 30, 2020

Conversation

yury-s
Copy link
Member

@yury-s yury-s commented Apr 28, 2020

No description provided.

@@ -6,7 +6,7 @@
},
{
"name": "firefox",
"revision": "1087"
"revision": "1088"
Copy link
Member

Choose a reason for hiding this comment

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

run npm run doc to generate readme.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. I don't see any diff though.

let originPage = page._initializedPage;
// If it's a new window download, report it on the opener page.
if (!originPage)
originPage = await page.opener();
Copy link
Member

Choose a reason for hiding this comment

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

same here

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

let originPage = ffPage._initializedPage;
// If it's a new window download, report it on the opener page.
if (!originPage) {
originPage = await ffPage.opener();
Copy link
Member

Choose a reason for hiding this comment

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

same here

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

let originPage = this._crPage._initializedPage;
// If it's a new window download, report it on the opener page.
if (!originPage) {
originPage = await this._crPage.opener();
Copy link
Member

Choose a reason for hiding this comment

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

this now races with the download finished, i.e. crashes

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@yury-s yury-s merged commit 78b44ed into microsoft:master Apr 30, 2020
@yury-s yury-s deleted the new-win-dl branch April 30, 2020 01:36
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.

2 participants