We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 042579d commit 28afa80Copy full SHA for 28afa80
1 file changed
src/browser.pyx
@@ -576,15 +576,8 @@ cdef class PyBrowser:
576
cpdef py_void ShowDevTools(self):
577
cdef CefWindowInfo window_info
578
IF UNAME_SYSNAME == "Windows":
579
- # On Windows with empty window_info structure the devtools
580
- # window doesn't appear.
581
- window_info.SetAsPopup(
582
- # TODO:
583
- # According to docs this returns NULL for non-popup
584
- # windows, so looks like we shouldn't use that and
585
- # either pass NULL or GetWindowHandle().
586
- <CefWindowHandle>self.GetOpenerWindowHandle(),
587
- PyToCefStringValue("DevTools"))
+ window_info.SetAsPopup(<CefWindowHandle>self.GetWindowHandle(),
+ PyToCefStringValue("DevTools"))
588
cdef CefBrowserSettings settings
589
cdef CefPoint inspect_element_at
590
self.GetCefBrowserHost().get().ShowDevTools(
0 commit comments