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: BrowserWindow.fromWebContents() can return null #19983
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 think we need to update some specs here?
|
92e48d4
to
7709d6f
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.
👍 much better now
@miniak can you please rebase onto the latest master? |
7709d6f
to
1c1ce92
Compare
@alexeykuzmin done |
Release Notes Persisted
|
Description of Change
Make it consistent with
BrowserView.fromWebContents()
:electron/lib/browser/api/browser-view.js
Lines 8 to 14 in 26d9ef9
Checklist
npm test
passesRelease Notes
Notes: Fixed
BrowserWindow.fromWebContents()
to returnnull
when no window is found for consistency with other APIs.