Re: [runtime] Privileged Applications Extensions spec proposal

On 2013-07-03 09:43, Jonas Sicking wrote:
>> I don't understand how it is a problem that an application is running during an update? Isn't it the "industy standard" to terminate an app before an update takes place (or make a user terminate it beforehand). Applications can detect being shut down (via the onterminate handler) at which point they do all the stuff that they would if the user shut them down manually or if the system decided to close them (Android does something like that).
>
> That's a good point. In FirefoxOS we decided that we did not want to
> forcibly shut down applications to apply updates. So updates are
> instead automatically applied as soon as the application closes.
> However that's a decision that should be up to the implementation. So
> we need to make sure that the API supports either model.
I agree. We would have to change the applyUpdate() description.
>
> I don't know if that means having an applyUpdate() function either
> reports an error if the application is currently running, or forcibly
> shuts down the application, depending on runtime policies. Or if the
> solution is to not have an applyUpdate() function and instead let use
> the exit() function if you want to ensure that an update is
> immediately applied.
IMO we need applyUpdate(), bacause the API would feel incomplete without 
it - you could check the update status, download an update and then what 
- exit()?

Regards,
Janusz

Received on Wednesday, 3 July 2013 07:55:47 UTC