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 96010 8061c23ff32b128ea63b50b2428dfd644f097ba9
parent 96009 d529eceaccfaadfc1931375a6768bbac43405320
child 96011 793d4912247be6617e79a6f429bc52c8e97c8d02
push id10345
push userfelipc@gmail.com
push dateWed, 06 Jun 2012 22:15:22 +0000
treeherdermozilla-inbound@8061c23ff32b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfelipe
bugs761496
milestone16.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;