summaryrefslogtreecommitdiff
path: root/libre/iceweasel/wifi-fix-interface.patch
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2017-09-29 14:34:19 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2017-09-29 14:34:19 -0500
commitf7ed232d07c78b454ba9ea7aaf398092453a76b6 (patch)
tree6ddc778cb43e80b73b5bae9f5a30e72b93d73a44 /libre/iceweasel/wifi-fix-interface.patch
parent238d327712e98bc3e861b985882410a911ac6ee6 (diff)
downloadabslibre-f7ed232d07c78b454ba9ea7aaf398092453a76b6.tar.gz
abslibre-f7ed232d07c78b454ba9ea7aaf398092453a76b6.tar.bz2
abslibre-f7ed232d07c78b454ba9ea7aaf398092453a76b6.zip
iceweasel-1:55.0.3-3.1: Patches from deved/nightly
Diffstat (limited to 'libre/iceweasel/wifi-fix-interface.patch')
-rw-r--r--libre/iceweasel/wifi-fix-interface.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/libre/iceweasel/wifi-fix-interface.patch b/libre/iceweasel/wifi-fix-interface.patch
new file mode 100644
index 000000000..1980db183
--- /dev/null
+++ b/libre/iceweasel/wifi-fix-interface.patch
@@ -0,0 +1,26 @@
+# HG changeset patch
+# Parent 7a6d836b62779aa61988981c6ca646495574a505
+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.
+
+diff --git a/netwerk/wifi/nsWifiScannerDBus.cpp b/netwerk/wifi/nsWifiScannerDBus.cpp
+--- a/netwerk/wifi/nsWifiScannerDBus.cpp
++++ b/netwerk/wifi/nsWifiScannerDBus.cpp
+@@ -151,7 +151,7 @@ nsWifiScannerDBus::SendGetAll(const char
+ 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;
+ }