From 713d6adc6dd72e66f3723977641ba2ee82f30658 Mon Sep 17 00:00:00 2001 From: Jan Steffens Date: Sat, 16 Sep 2017 18:35:20 +0200 Subject: Bug 1314968 - Explicitly specify the AccessPoint interface name. r=kanru The DBus specification allows passing an empty string as the interface to the org.freedesktop.DBus.Properties.GetAll call to get all properties, throwing away the namespace (interface) information. However, GDBus does not allow this. When NetworkManager moved to using GDBus, Firefox lost the ability to retrieve access points from NetworkManager. Since we're only interested in properties from the org.freedesktop.NetworkManager.AccessPoint interface, name it explicitly. This works with both the old and the new NetworkManager. MozReview-Commit-ID: Kc5HaYvwfRZ --HG-- extra : rebase_source : e1550d327e5a4ea05b8d35d98ef7b27c0add709b --- netwerk/wifi/nsWifiScannerDBus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netwerk/wifi') diff --git a/netwerk/wifi/nsWifiScannerDBus.cpp b/netwerk/wifi/nsWifiScannerDBus.cpp index 182553e18..6fa0a0b02 100644 --- a/netwerk/wifi/nsWifiScannerDBus.cpp +++ b/netwerk/wifi/nsWifiScannerDBus.cpp @@ -62,7 +62,7 @@ nsWifiScannerDBus::SendMessage(const char* aInterface, return NS_ERROR_FAILURE; } } else if (!strcmp(aFuncCall, "GetAll")) { - const char* param = ""; + const char* param = "org.freedesktop.NetworkManager.AccessPoint"; if (!dbus_message_iter_append_basic(&argsIter, DBUS_TYPE_STRING, ¶m)) { return NS_ERROR_FAILURE; } -- cgit v1.2.3