Bug 761496. Cannot launch multiple native webapps on Linux. r=felipe
authorMarco Castelluccio <mar.castelluccio@studenti.unina.it>
Wed, 06 Jun 2012 19:14:43 -0300
changeset 98733 8061c23ff32b128ea63b50b2428dfd644f097ba9
parent 98732 d529eceaccfaadfc1931375a6768bbac43405320
child 98734 793d4912247be6617e79a6f429bc52c8e97c8d02
push id1729
push userlsblakk@mozilla.com
push dateMon, 16 Jul 2012 20:02:43 +0000
treeherdermozilla-aurora@f4e75e148951 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfelipe
bugs761496
milestone16.0a1
Bug 761496. Cannot launch multiple native webapps on Linux. r=felipe
webapprt/linux/webapprt.cpp
--- a/webapprt/linux/webapprt.cpp
+++ b/webapprt/linux/webapprt.cpp
@@ -162,16 +162,17 @@ bool GRELoadAndLaunch(const char* firefo
 
     nsXREAppData *webShellAppData;
     if (NS_FAILED(XRE_CreateAppData(rtINI, &webShellAppData))) {
       ErrorDialog("Couldn't read WebappRT application.ini");
       return false;
     }
 
     SetAllocatedString(webShellAppData->profile, profile);
+    SetAllocatedString(webShellAppData->name, profile);
 
     nsCOMPtr<nsIFile> directory;
     if (NS_FAILED(XRE_GetFileFromPath(rtPath, getter_AddRefs(directory)))) {
       ErrorDialog("Couldn't open runtime directory");
       return false;
     }
 
     nsCOMPtr<nsIFile> xreDir;