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
chore: remove deprecated 'new-window' event #34526
Conversation
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.
i'm worried about removing this without any machinery to explode when people try to do things the old way. we used to recommend new-window
listeners for security reasons, and i bet a lot of apps still use it. removing it without an error/warning seems dangerous.
i suggest a 2-version deprecate/delete cycle:
- in version
X
, add a warning when an app registers anew-window
listener. - in version
X+1
, remove the event and throw an error when the app registers anew-window
listener.
@nornagon can we still add the warning in Electron 20 to be able to land the removal in Electron 21? |
@miniak I'm not necessarily against that, but it's been deprecated for over a year now so I'm not sure waiting one more version to delete it is that bad? Is there any rush? |
@nornagon no rush actually. I can add the warning only to main and wait with this one. What do others in the @electron/wg-api think? |
Adding a deprecation log and waiting seems like the correct approach. We may not be considering a certain use case and users can voice their concern prior to removal if they notice the deprecation. If we can afford it, maybe waiting 2 versions would be worthwhile since not everyone upgrades to the latest version. |
@samuelmaddock the question was mainly whether to do warning in E21 and then remove in E22, or already warn in E20 and remove in E21. We can also warn in E20 and remove in E22. |
This sounds best to me to give folks upgrading ample time. |
aa90087
to
eb0691b
Compare
eb0691b
to
a2b030c
Compare
9aee851
to
8247a3e
Compare
8247a3e
to
c61a678
Compare
c61a678
to
dcf2b1b
Compare
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.
API LGTM
API LGTM |
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.
API LGTM
Release Notes Persisted
|
This was removed from Electron recently: electron/electron#34526
This was removed from Electron recently: electron/electron#34526
Description of Change
It has been deprecated since Electron 13. Warning was added in Electron 20 (#34528).
Checklist
npm test
passesRelease Notes
Notes: The deprecated
new-window
event has been removed.