diff options
author | Jan Steffens <jan.steffens@gmail.com> | 2017-09-16 18:35:20 +0200 |
---|---|---|
committer | Leorize <alaviss@users.noreply.github.com> | 2018-05-16 16:53:12 +0700 |
commit | 37d2c3dc0891748e94eb7023200d813a45ca7d79 (patch) | |
tree | f4e193b063270af908ec4e890d1963f9601baace | |
parent | 040f946bd1f17ade0768d65cea858fa492e57ea5 (diff) | |
download | uxp-37d2c3dc0891748e94eb7023200d813a45ca7d79.tar.gz |
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
-rw-r--r-- | netwerk/wifi/nsWifiScannerDBus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netwerk/wifi/nsWifiScannerDBus.cpp b/netwerk/wifi/nsWifiScannerDBus.cpp index 182553e18f..6fa0a0b023 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; } |