Bug 1314968 - Explicitly specify the AccessPoint interface name. r?kanru draft
authorJan Steffens <jan.steffens@gmail.com>
Sat, 16 Sep 2017 18:35:20 +0200
changeset 666045 eca698772efc4ad4d6016cf5c2d22650f39d05d8
parent 666044 42f28116e2fe74f92150a9941b088aaf52a6ca9a
child 731961 1e5541b92aa5c849bd102a48eb6a976809360cbe
push id80256
push userbmo:jan.steffens@gmail.com
push dateSun, 17 Sep 2017 08:48:31 +0000
reviewerskanru
bugs1314968
milestone57.0a1
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
netwerk/wifi/nsWifiScannerDBus.cpp
--- a/netwerk/wifi/nsWifiScannerDBus.cpp
+++ b/netwerk/wifi/nsWifiScannerDBus.cpp
@@ -146,17 +146,17 @@ nsWifiScannerDBus::SendGetAPProperties(c
                                  "GetAll"));
   if (!msg) {
     return NS_ERROR_FAILURE;
   }
 
   DBusMessageIter argsIter;
   dbus_message_iter_init_append(msg, &argsIter);
 
-  const char* param = "";
+  const char* param = "org.freedesktop.NetworkManager.AccessPoint";
   if (!dbus_message_iter_append_basic(&argsIter, DBUS_TYPE_STRING, &param)) {
     return NS_ERROR_FAILURE;
   }
 
   DBusError err;
   dbus_error_init(&err);
 
   RefPtr<DBusMessage> reply = already_AddRefed<DBusMessage>(