Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[GLIB] Make remote inspector DBus protocol common to all glib based p…
…orts

https://bugs.webkit.org/show_bug.cgi?id=172970

Reviewed by Žan Doberšek.

Source/JavaScriptCore:

We are currently using "webkitgtk" in the names of DBus interfaces and object paths inside an ifdef with the
idea that other ports could use their own names. However, the protocol is the same, so we could use the same
names and make all glib based ports compatible to each other. This way we could use the GTK+ MiniBrowser to
debug WPE, without having to implement the frontend part in WPE yet.

* inspector/remote/glib/RemoteInspectorGlib.cpp: Use webkit instead of webkitgtk and reomve platform idfeds.
* inspector/remote/glib/RemoteInspectorServer.cpp: Ditto.

Source/WebKit2:

Use webkit instead of webkitgtk and reomve platform idfeds.

* UIProcess/glib/RemoteInspectorClient.cpp:

Canonical link: https://commits.webkit.org/189856@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@217831 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
carlosgcampos committed Jun 6, 2017
1 parent 7a98112 commit 095ea7c
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 20 deletions.
15 changes: 15 additions & 0 deletions Source/JavaScriptCore/ChangeLog
@@ -1,3 +1,18 @@
2017-06-06 Carlos Garcia Campos <cgarcia@igalia.com>

[GLIB] Make remote inspector DBus protocol common to all glib based ports
https://bugs.webkit.org/show_bug.cgi?id=172970

Reviewed by Žan Doberšek.

We are currently using "webkitgtk" in the names of DBus interfaces and object paths inside an ifdef with the
idea that other ports could use their own names. However, the protocol is the same, so we could use the same
names and make all glib based ports compatible to each other. This way we could use the GTK+ MiniBrowser to
debug WPE, without having to implement the frontend part in WPE yet.

* inspector/remote/glib/RemoteInspectorGlib.cpp: Use webkit instead of webkitgtk and reomve platform idfeds.
* inspector/remote/glib/RemoteInspectorServer.cpp: Ditto.

2017-06-06 Carlos Garcia Campos <cgarcia@igalia.com>

[GTK] Web Process deadlock when closing the remote inspector frontend
Expand Down
Expand Up @@ -36,12 +36,10 @@
#include <wtf/RunLoop.h>
#include <wtf/glib/GUniquePtr.h>

#if PLATFORM(GTK)
#define REMOTE_INSPECTOR_DBUS_INTERFACE "org.webkitgtk.RemoteInspector"
#define REMOTE_INSPECTOR_DBUS_OBJECT_PATH "/org/webkitgtk/RemoteInspector"
#define INSPECTOR_DBUS_INTERFACE "org.webkitgtk.Inspector"
#define INSPECTOR_DBUS_OBJECT_PATH "/org/webkitgtk/Inspector"
#endif
#define REMOTE_INSPECTOR_DBUS_INTERFACE "org.webkit.RemoteInspector"
#define REMOTE_INSPECTOR_DBUS_OBJECT_PATH "/org/webkit/RemoteInspector"
#define INSPECTOR_DBUS_INTERFACE "org.webkit.Inspector"
#define INSPECTOR_DBUS_OBJECT_PATH "/org/webkit/Inspector"

namespace Inspector {

Expand Down
Expand Up @@ -34,14 +34,12 @@
#include <wtf/Vector.h>
#include <wtf/glib/GUniquePtr.h>

#if PLATFORM(GTK)
#define INSPECTOR_DBUS_INTERFACE "org.webkitgtk.Inspector"
#define INSPECTOR_DBUS_OBJECT_PATH "/org/webkitgtk/Inspector"
#define REMOTE_INSPECTOR_DBUS_INTERFACE "org.webkitgtk.RemoteInspector"
#define REMOTE_INSPECTOR_DBUS_OBJECT_PATH "/org/webkitgtk/RemoteInspector"
#define REMOTE_INSPECTOR_CLIENT_DBUS_INTERFACE "org.webkitgtk.RemoteInspectorClient"
#define REMOTE_INSPECTOR_CLIENT_OBJECT_PATH "/org/webkitgtk/RemoteInspectorClient"
#endif
#define INSPECTOR_DBUS_INTERFACE "org.webkit.Inspector"
#define INSPECTOR_DBUS_OBJECT_PATH "/org/webkit/Inspector"
#define REMOTE_INSPECTOR_DBUS_INTERFACE "org.webkit.RemoteInspector"
#define REMOTE_INSPECTOR_DBUS_OBJECT_PATH "/org/webkit/RemoteInspector"
#define REMOTE_INSPECTOR_CLIENT_DBUS_INTERFACE "org.webkit.RemoteInspectorClient"
#define REMOTE_INSPECTOR_CLIENT_OBJECT_PATH "/org/webkit/RemoteInspectorClient"

namespace Inspector {

Expand Down
11 changes: 11 additions & 0 deletions Source/WebKit2/ChangeLog
@@ -1,3 +1,14 @@
2017-06-06 Carlos Garcia Campos <cgarcia@igalia.com>

[GLIB] Make remote inspector DBus protocol common to all glib based ports
https://bugs.webkit.org/show_bug.cgi?id=172970

Reviewed by Žan Doberšek.

Use webkit instead of webkitgtk and reomve platform idfeds.

* UIProcess/glib/RemoteInspectorClient.cpp:

2017-06-06 Zan Dobersek <zdobersek@igalia.com>

[WPE] Don't disable Web security preference by default
Expand Down
10 changes: 4 additions & 6 deletions Source/WebKit2/UIProcess/glib/RemoteInspectorClient.cpp
Expand Up @@ -34,12 +34,10 @@
#include <wtf/glib/GUniquePtr.h>
#include <wtf/text/Base64.h>

#if PLATFORM(GTK)
#define REMOTE_INSPECTOR_CLIENT_DBUS_INTERFACE "org.webkitgtk.RemoteInspectorClient"
#define REMOTE_INSPECTOR_CLIENT_OBJECT_PATH "/org/webkitgtk/RemoteInspectorClient"
#define INSPECTOR_DBUS_INTERFACE "org.webkitgtk.Inspector"
#define INSPECTOR_DBUS_OBJECT_PATH "/org/webkitgtk/Inspector"
#endif
#define REMOTE_INSPECTOR_CLIENT_DBUS_INTERFACE "org.webkit.RemoteInspectorClient"
#define REMOTE_INSPECTOR_CLIENT_OBJECT_PATH "/org/webkit/RemoteInspectorClient"
#define INSPECTOR_DBUS_INTERFACE "org.webkit.Inspector"
#define INSPECTOR_DBUS_OBJECT_PATH "/org/webkit/Inspector"

namespace WebKit {

Expand Down

0 comments on commit 095ea7c

Please sign in to comment.