Closed magreenblatt closed 4 months ago
Some related crashes fixed in https://github.com/chromiumembedded/cef/commit/cc3d77eec5d8a9f75e574883b87dee39b083d0bf
Call stack for drawing the taskbar decoration when selecting "New incognito window" or another profile:
> libcef.dll!taskbar::UpdateTaskbarDecoration(Profile * profile, aura::Window * window) Line 224 C++
libcef.dll!BrowserNonClientFrameView::OnProfileAvatarChanged(const base::FilePath & profile_path) Line 280 C++
libcef.dll!BrowserNonClientFrameView::VisibilityChanged(views::View * starting_from, bool is_visible) Line 202 C++
ui_views.dll!views::View::VisibilityChangedImpl(views::View * starting_from, bool is_visible) Line 3136 C++
ui_views.dll!views::View::PropagateVisibilityNotifications(views::View * start, bool is_visible) Line 3132 C++
ui_views.dll!views::View::PropagateVisibilityNotifications(views::View * start, bool is_visible) Line 3128 C++
ui_views.dll!views::View::PropagateVisibilityNotifications(views::View * start, bool is_visible) Line 3128 C++
ui_views.dll!views::Widget::OnNativeWidgetVisibilityChanged(bool visible) Line 1607 C++
ui_views.dll!views::DesktopWindowTreeHostWin::HandleVisibilityChanged(bool visible) Line 1037 C++
ui_views.dll!views::HWNDMessageHandler::OnWindowPosChanged(tagWINDOWPOS * window_pos) Line 3041 C++
In taskbar::UpdateTaskbarDecoration
we can use BrowserView::GetBrowserViewForNativeWindow(gfx::NativeWindow)
to retrieve the associated BrowserView
/Browser
objects. We can then check for Views-hosted opener using the same logic as #3641.
Is your feature request related to a problem? Please describe. When using multiple profiles, Chrome on Windows adds a profile badge to the taskbar icon for the 2nd+ profile used in a given session. This includes default Chrome UI windows ("New window" menu option) and popups such as DevTools and PiP.
cefclient --enable-chrome-runtime
Describe the solution you'd like Disable this behavior with Views-hosted parent windows, similar to #3641.
Additional context Chromium code is UpdateTaskbarDecoration.
Also related to https://superuser.com/questions/1079771/removing-the-google-chrome-profile-icon