Closed HashidaTKS closed 4 months ago
This is due to ClientHandler::OnOpenURLFromTab creating a new window in addition to the default Chrome behavior (DevToolsWindow::OpenInNewTab calls chrome::AddSelectedTabWithURL
). We should try to disable the default behavior when OnOpenURLFromTab returns true.
DevToolsWindow::OpenInNewTab calls chrome::AddSelectedTabWithURL
It looks like this case should not occur normally [1], so it should be safe to remove this fallback in DevToolsWindow.
[1] Browser::OpenURLFromTab will only return nullptr normally if the open is blocked by the popup blocker. However, that probably shouldn't trigger in this DevTools case.
Describe the bug
When executing "Open in new tab" of DevTools's Network tab, two windows open.
One is a client application style window and the other is a Chromium style window.
We can reproduce it on
cefclient
v126 and v127 for Windows.To Reproduce
We can reproduce it with
cefclient
.cefclient.exe
Expected behavior
Only a client application style window opens.
Screenshots
Added at Describe the bug.
Versions (please complete the following information):
Additional context
Yes
No