fix: move BrowserWindow's WebContentsView to be a child of rootview#41256
fix: move BrowserWindow's WebContentsView to be a child of rootview#41256
Conversation
|
Looks like the menu bar is expecting a different amount of children after this PR electron/shell/browser/ui/views/root_view.cc Lines 92 to 98 in 4367c5a |
03b1e5e to
3d3af28
Compare
3d3af28 to
aa66ce7
Compare
|
The WoA CI consistently fails with a |
|
WoA still crashes, maybe just remove the line? |
|
Release Notes Persisted
|
|
I was unable to backport this PR to "30-x-y" cleanly; |
|
/trop run backport-to 30-x-y |
|
The backport process for this PR has been manually initiated - sending your PR to |
…41256) Co-authored-by: Jeremy Rose <jeremya@chromium.org>
|
I was unable to backport this PR to "30-x-y" cleanly; |
Revert "fix: move BrowserWindow's WebContentsView to be a child of rootview (electron#41256)" This reverts commit 76f7bbb. Patch-Filename: fix_revert_change_that_broke_nvda_screen_reader.patch
Revert "fix: move BrowserWindow's WebContentsView to be a child of rootview (electron#41256)" This reverts commit 76f7bbb. Patch-Filename: fix_revert_change_that_broke_nvda_screen_reader.patch
Revert "fix: move BrowserWindow's WebContentsView to be a child of rootview (electron#41256)" This reverts commit 76f7bbb. Additionally reverts commit 7d045dc to support prior revert. Patch-Filename: fix_revert_change_that_broke_nvda_screen_reader.patch
Revert "fix: move BrowserWindow's WebContentsView to be a child of rootview (electron#41256)" This reverts commit 76f7bbb. Additionally reverts commit 7d045dc to support prior revert. Patch-Filename: fix_revert_change_that_broke_nvda_screen_reader.patch
Revert "fix: move BrowserWindow's WebContentsView to be a child of rootview (electron#41256)" This reverts commit 76f7bbb. Additionally reverts commit 7d045dc to support prior revert. Patch-Filename: fix_revert_change_that_broke_nvda_screen_reader.patch
Description of Change
Fixes #41141.
Previously, BrowserWindow#contentView was a reference to the BrowserWindow's
WebContentsView, and any child views that were added would be children of the
WebContentsView. This caused some strange behavior, including BrowserViews
sometimes being painted behind the BrowserWindow's web contents.
This PR has BrowserWindow's WebContentsView be a sibling to the content view,
inserted before it, so that the BrowserWindow's WebContents will always display
behind its children as intended.
It also prevents users from doing dangerous, unsupported and probably entirely
broken things like swapping out the BrowserWindow's contentView for another
view.
Checklist
npm testpassesRelease Notes
Notes: Fixed an issue where child views in a BrowserWindow could sometimes be
painted behind the main web content.