| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
gfx::NativeWindow opener_window = gfx::NativeWindow();Are we able to instead perhaps retain the session id of the inspected Browser, and when the devtools window is destroyed simply activate the inspected Browser? We could probably keep this detail local to `devtools_window.cc`
#if BUILDFLAG(IS_MAC)
// Set parent/opener window relationship for DevTools windows on Mac.
// When the DevTools window closes, focus returns to the opener window
// (e.g., the PWA window that opened it) instead of the main browser.
gfx::NativeWindow opener = browser->create_params().opener_window;
if (opener) {
params.parent = gfx::GetViewForWindow(opener);
}
#endifI'm not sure we want to encourage parent-child relationships between browsers (we end up with awkward interactions involving things like paint-as-active and in general it's not something we should have Browsers do).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
gfx::NativeWindow opener_window = gfx::NativeWindow();Are we able to instead perhaps retain the session id of the inspected Browser, and when the devtools window is destroyed simply activate the inspected Browser? We could probably keep this detail local to `devtools_window.cc`
Good idea! Updated the code to add `inspected_browser_session_id_` to `DevToolsWindow`. Thanks!
#if BUILDFLAG(IS_MAC)
// Set parent/opener window relationship for DevTools windows on Mac.
// When the DevTools window closes, focus returns to the opener window
// (e.g., the PWA window that opened it) instead of the main browser.
gfx::NativeWindow opener = browser->create_params().opener_window;
if (opener) {
params.parent = gfx::GetViewForWindow(opener);
}
#endifI'm not sure we want to encourage parent-child relationships between browsers (we end up with awkward interactions involving things like paint-as-active and in general it's not something we should have Browsers do).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |