1. Install the app with appcache here - http://people.mozilla.com/~fdesre/openwebapps/test.html
2. Cut your internet connection
3. Reinstall the app with appcache here - http://people.mozilla.com/~fdesre/openwebapps/test.html
Without a network connection, I'd expect app installation to fail.
The app ends up being uninstalled from the user's machine.
Note - this does not happen with an app that is installed from the same hosted origin that does not use appcache preloading.
Change that - this happens also when an internet connection is present.
k9o nomination - We're heavily advocating app cache with web apps, especially with app cache preloading. Having incorrect reinstall behavior isn't a good thing.
When you say it uninstalls the app, does it remove it from the DOM registry, or just clears the offline cache?
(In reply to Fabrice Desré [:fabrice] from comment #4)
> When you say it uninstalls the app, does it remove it from the DOM registry,
> or just clears the offline cache?
Uninstall app in this case implies:
- Uninstalling the app natively from the machine (e.g. equilvalent to removing through add or remove programs)
I'm currently digging into if this affects the DOMRegistry as well (e.g. removing it from there on reinstall).
Jason, does it remove the profile directory?
(In reply to Marco Castelluccio from comment #6)
> Jason, does it remove the profile directory?
Yup. It removes the entire application folder actually, including the profile folder. Marking for re-triage, as we now know this involves data loss, including the app profile.
In the installer, the only case in which we remove the profile directory is when there is an error during installation. Do you see anything in the error console?
(In reply to Marco Castelluccio from comment #8)
> In the installer, the only case in which we remove the profile directory is
> when there is an error during installation. Do you see anything in the error
Indeed I do! Here's the error I got:
Timestamp: 7/3/2012 5:01:56 PM
Error: Error installing app: ReferenceError: Cr is not defined
Source File: resource:///modules/WebappsInstaller.jsm
Created attachment 638928 [details] [diff] [review]
Thanks Jason and Marco for figuring out the problem
try build to show up here: http://firstname.lastname@example.org
(the build also includes the fix for bug 769955)
(In reply to Felipe Gomes (:felipe) from comment #11)
> try build to show up here:
> (the build also includes the fix for bug 769955)
Will this patch fix bug 770321 also? I know this error in the error console also reproduces on Mac as well.
(In reply to Jason Smith [:jsmith] from comment #12)
> Will this patch fix bug 770321 also? I know this error in the error console
> also reproduces on Mac as well.
Most probably it will fix bug 770321. And it could fix also bug 753660.
*** Bug 770321 has been marked as a duplicate of this bug. ***
Verified on Nightly.