Switch web extensions to using private D-Bus connections

Desktop / GNOME / Epiphany - Michael Catanzaro [igalia.com] - 8 February 2016 13:53 UTC

Instead of using the session bus. There's no point in advertising the web extension D-Bus interface as if it could be meaningfully used by anything other than the Epiphany UI process.

EphyEmbedShell will run the D-Bus server, and the web extensions will connect to it.

https://bugzilla.gnome.org/show_bug.cgi?id=761009

b8b3913 Switch web extensions to using private D-Bus connections
embed/ephy-embed-shell.c | 215 +++++++++++++------------
embed/ephy-web-extension-proxy.c | 168 ++++++++++---------
embed/ephy-web-extension-proxy.h | 4 +-
embed/web-extension/ephy-web-extension-main.c | 46 +++---
embed/web-extension/ephy-web-extension.c | 105 +++++++-----
embed/web-extension/ephy-web-extension.h | 3 +-
lib/Makefile.am | 2 +
lib/ephy-dbus-util.c | 37 +++++
lib/ephy-dbus-util.h | 29 ++++
9 files changed, 360 insertions(+), 249 deletions(-)

Upstream: git.gnome.org


  • Share