[GTK] Remote Inspector: add support for service workers targets
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Jan 2020 10:43:22 +0000 (10:43 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Jan 2020 10:43:22 +0000 (10:43 +0000)
commit618261bfb73da93889cdae0d46f88df8dd5e1deb
treeba21f23c38c88ec6d35fa21314cd27e364d49fc2
parent08912fb76019244fb54349d88594b271152496a0
[GTK] Remote Inspector: add support for service workers targets
https://bugs.webkit.org/show_bug.cgi?id=206821

Reviewed by Žan Doberšek.

Source/JavaScriptCore:

Handle ServiceWorker target type.

* inspector/remote/glib/RemoteInspectorGlib.cpp:
(Inspector::targetDebuggableType):
(Inspector::RemoteInspector::listingForInspectionTarget const):

Source/WebKit:

Add support for debugging service workers.

* UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp:
(WebKit::RemoteInspectorProtocolHandler::handleRequest): Pass target type to message handler too.
(WebKit::RemoteInspectorProtocolHandler::inspect): Pass the received target type to the client.
* UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.h:
* UIProcess/glib/RemoteInspectorClient.cpp:
(WebKit::RemoteInspectorProxy::load): It now receives the debuggable type that is set to the API::DebuggableInfo.
(WebKit::RemoteInspectorClient::messageHandlers): Handle service worker targets too.
(WebKit::debuggableType): Helper to convert the target type to debuggable type.
(WebKit::RemoteInspectorClient::inspect): Pass the debuggable tupe to RemoteInspectorProxy::load().
* UIProcess/glib/RemoteInspectorClient.h:
* UIProcess/gtk/WebInspectorProxyGtk.cpp:
(WebKit::WebInspectorProxy::infoForLocalDebuggable): Use WebPage as debuggable type instead of the default.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@255232 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/inspector/remote/glib/RemoteInspectorGlib.cpp
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp
Source/WebKit/UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.h
Source/WebKit/UIProcess/Inspector/glib/RemoteInspectorClient.cpp
Source/WebKit/UIProcess/Inspector/glib/RemoteInspectorClient.h
Source/WebKit/UIProcess/Inspector/gtk/WebInspectorProxyGtk.cpp