-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Conversation
@@ -6,7 +6,7 @@ | |||
}, | |||
{ | |||
"name": "firefox", | |||
"revision": "1087" | |||
"revision": "1088" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
src/webkit/wkBrowser.ts
Outdated
let originPage = page._initializedPage; | ||
// If it's a new window download, report it on the opener page. | ||
if (!originPage) | ||
originPage = await page.opener(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
src/firefox/ffBrowser.ts
Outdated
let originPage = ffPage._initializedPage; | ||
// If it's a new window download, report it on the opener page. | ||
if (!originPage) { | ||
originPage = await ffPage.opener(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
src/chromium/crPage.ts
Outdated
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(); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
No description provided.