Commit Graph
10 Commits
Author SHA1 Message Date
Sebastian Hengst 18b56ed3ef Bug 1480517 - Unregister remote service DBus object at nsDBusRemoteService::Shutdown(). r=jhorak 2018-08-08 10:56:25 +03:00
ozoder 9d78d238ec Bug 1472611 - Don't link DBus 1.5.12 symbol dbus_validate_bus_name(), r=stransky
MozReview-Commit-ID: 6scVh8DOex2
2018-07-04 09:24:34 +02:00
Martin Stransky a13dfaf838 Bug 1462571 - Check dbus name by dbus_validate_bus_name() before use, r=jhorak
MozReview-Commit-ID: AxQp79oyRlm
2018-05-18 12:54:03 +02:00
Martin Stransky 433859ad85 Bug 1418770 - Truncate DBus names used for remote service to DBUS_MAXIMUM_NAME_LENGTH, r=jhorak
MozReview-Commit-ID: 3Hrt3Ef87WD
2018-02-13 13:59:39 +01:00
Martin Stransky 06f856e2bd Bug 1434565 - Put some meanigful timestamp to nsRemoteService::HandleCommandLine(), r=jhorak
We need to put a timestamp to nsRemoteService::HandleCommandLine() to allow Gtk+ focus
opened Firefox window.

Unfortunately we don't have much choice how to get the timestamp at DBUS remote service
so ask for gtk_get_current_event_time() and when GDK_CURRENT_TIME is returned
(it means we don't have the timestamp) use g_get_monotonic_time() as well
as at nsWindow::GetEventTimeStamp().

MozReview-Commit-ID: 9ilVZ0kPe3x
2018-02-01 13:56:15 +01:00
Martin Stransky d74493f734 Bug 1429021 - Don't try to start DBus service without any application/profile name, r=jhorak
MozReview-Commit-ID: 97jawSNNp3i
2018-01-09 13:56:12 +01:00
Martin Stransky f68cede005 Bug 1420124 - X Remote Service: Encode DBus interface strings by base64 to avoid failure/crashes, r=jhorak
DBus strings can contain only [a-z][A-Z][0-9]_ chars. Encode profile name (used as part of interface name) by base64 and adjust it to avoid crashes (Bug 1418985).

Also remove DBusError where it's not useful.

MozReview-Commit-ID: DWnzFGUYybp
2017-11-23 12:27:38 +01:00
Martin Stransky 24964da4cb Bug 1418985 - pass valid error parameter to dbus_bus_get() instead of nullptr, jhorak r=jhorak
MozReview-Commit-ID: 2pjjSSd7DOI
2017-11-20 15:33:52 +01:00
Martin Stransky 1088fb3a1a Bug 1418985 - pass valid error parameter to dbus_bus_request_name() instead of nullptr, r=jhorak
MozReview-Commit-ID: 4Gv517107zt
2017-11-20 15:24:11 +01:00
Martin Stransky 02d2c2a827 Bug 1360566 - [Wayland] - Implement XRemote Server by D-Bus, r=jhorak
It creates new nsRemoteService instance which is parent (proxy) class which is registered as global nsIRemoteService. It provides basic functionality (watch observer for shutdown, launch firefox instance by HandleCommandLine()) for child services which are system specific. nsDBusRemoteService listens on DBus interface and it's available on DBus enabled systems only. nsGtkRemoteService is the former one based on X window propery mechanism.

MozReview-Commit-ID: GHpXdjstwyY
2017-11-09 12:13:32 +01:00