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

refactor: BrowserView is owned by a BaseWindow #35511

Merged
merged 3 commits into from Sep 1, 2022
Merged

refactor: BrowserView is owned by a BaseWindow #35511

merged 3 commits into from Sep 1, 2022

Conversation

nornagon
Copy link
Member

Description of Change

This changes the owner_window of a BrowserView from NativeWindow to
BaseWindow, and makes getBrowserViews() always in sync with the browser views
in a window, even if they are reparented.

Checklist

Release Notes

Notes: Fixed win.getBrowserViews() not being updated when a BrowserView was moved to a different window.

@nornagon nornagon added no-backport semver/patch backwards-compatible bug fixes labels Aug 31, 2022
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Aug 31, 2022
Copy link
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

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

nice 🥳

shell/browser/api/electron_api_base_window.cc Outdated Show resolved Hide resolved
shell/browser/api/electron_api_base_window.cc Show resolved Hide resolved
spec/api-browser-view-spec.ts Show resolved Hide resolved
@nornagon nornagon merged commit f99122a into main Sep 1, 2022
@nornagon nornagon deleted the bv-owner branch September 1, 2022 00:40
@release-clerk
Copy link

release-clerk bot commented Sep 1, 2022

Release Notes Persisted

Fixed win.getBrowserViews() not being updated when a BrowserView was moved to a different window.

kyrylo-hrechykhin pushed a commit to kyrylo-hrechykhin/electron that referenced this pull request Sep 1, 2022
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-pr 🌱 PR opened in the last 24 hours no-backport semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants