Bug 1430018 - Fixed wrong profile param name at DBusRemoteClient::DoSendDBusCommandLine(), r?jhorak draft
authorMartin Stransky <stransky@redhat.com>
Fri, 12 Jan 2018 12:57:37 +0100
changeset 720425 44703ab399ffea070202a6c462ae9d283dac080f
parent 720424 bfd23378bb08e96536d10cee5aad9aad90603bb0
child 720426 92e67c61d64f5a34cc0cd79dacc3a74f94f75ead
push id95548
push userstransky@redhat.com
push dateMon, 15 Jan 2018 15:50:15 +0000
reviewersjhorak
bugs1430018
milestone59.0a1
Bug 1430018 - Fixed wrong profile param name at DBusRemoteClient::DoSendDBusCommandLine(), r?jhorak MozReview-Commit-ID: 6KKEwjLXTR9
widget/xremoteclient/DBusRemoteClient.cpp
--- a/widget/xremoteclient/DBusRemoteClient.cpp
+++ b/widget/xremoteclient/DBusRemoteClient.cpp
@@ -84,17 +84,17 @@ DBusRemoteClient::DoSendDBusCommandLine(
 {
   if(!aProfile || aProfile[0] == '\0') {
     return NS_ERROR_INVALID_ARG;
   }
 
   // D-Bus names can contain only [a-z][A-Z][0-9]_
   // characters so adjust the profile string properly.
   nsAutoCString profileName;
-  nsresult rv = mozilla::Base64Encode(nsAutoCString(aProfileName), profileName);
+  nsresult rv = mozilla::Base64Encode(nsAutoCString(aProfile), profileName);
   NS_ENSURE_SUCCESS(rv, rv);
   profileName.ReplaceChar("+/=", '_');
 
   nsAutoCString destinationName;
   destinationName = nsPrintfCString("org.mozilla.%s.%s", aProgram, profileName.get());
 
   nsAutoCString pathName;
   pathName = nsPrintfCString("/org/mozilla/%s/Remote", aProgram);