Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
REGRESSION(r196183): [GTK] Broke TestInspector
https://bugs.webkit.org/show_bug.cgi?id=153945 Reviewed by Michael Catanzaro. When the inspector view is detached and not added to a window, which happens when it's closed, the inspector view is destroyed because it doesn't have a parent anymore. When the inspector view is destroyed we notify the web process that the inspector was closed. Before r196183 this was not a problem, because the call to WebInspectorProxy::didClose() from platformDetach() returned early because WebInspectorProxy::didClose() had already set m_inspectorPage to nullptr. In r196183 m_inspectorPage is set to nullptr after platformDetach(), so we end up trying to detach the inpector view again. To prevent this cycle, we should disconnect the destroyed signal handler from the inspector view when platformDetach() is called from WebInspectorProxy::didClose(). * UIProcess/gtk/WebInspectorProxyGtk.cpp: (WebKit::WebInspectorProxy::platformDetach): Canonical link: https://commits.webkit.org/172170@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196363 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
31 additions
and 1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters