cefsharp / CefSharp

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
http://cefsharp.github.io/
Other
9.88k stars 2.92k forks source link

DevTools does not open as child popup window. #4936

Closed AASanch closed 1 month ago

AASanch commented 1 month ago

Is there an existing issue for this?

CefSharp Version

128.4.90

Operating System

Windows 10

Architecture

x64

.Net Version

net472

Implementation

WinForms

Reproduction Steps

Showing DevTools on the MinimalExample using the code below does not work as it did previously.

        private void ShowDevToolsMenuItemClick(object sender, EventArgs e)
        {
            var host = browser.GetBrowserHost();
            var windowInfo = new WindowInfo();
            windowInfo.SetAsPopup(host.GetWindowHandle(), "DevTools");
            browser.ShowDevTools(windowInfo);

        }

In version 128.4.90, the code above shows DevTools on top of the browser control, covering up large part of its top-left are.

image

In a previous version (121.3.70), the same code above shows DevTools as a child popup window of the browser.

image

Expected behavior

DevTools should show up as a popup window.

Actual behavior

DevTools is rendered on top of the browser control, covering up a large part of its top-left area.

Regression?

Yes. This works in v121.3.70.

Known Workarounds

No response

Does this problem also occur in the CEF Sample Application

Not Tested

Other information

No response

amaitland commented 1 month ago

Major upstream changes happened recently, see https://groups.google.com/g/cef-announce/c/s1WaovAopFo/m/LV5eiNX1BgAJ?pli=1 for background.

See also https://github.com/cefsharp/CefSharp/issues/4795


The Chromium Embedded Framework (CEF) project has it's own Issue Tracker, please report this issue there. CefSharp is just one of many wrappers around the Chromium Embedded Framework (CEF)

If you do find an existing issue that matches this one or create a new one then post a link here for others.

Closing this as upstream as changes/fixes need to be made in CEF.