Alive
unread,Aug 28, 2013, 6:10:13 AM8/28/13You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Zhiming, TANG(SWD2-SH-TCT), ferjm...@gmail.com, Terry, YIN(SWD2-SH-TCT), dev-w...@lists.mozilla.org, fab...@mozilla.com, timd...@mozilla.com, "Amélie, KONG(SWD2-SH-TCT)"
I know the pain of current mozSettings API.
But what we shall do is to improve its security level IMO.
I wonder eventually this needs gaia system support to let gecko knows the running application information, because gecko doesn't know that right now. More clearly gecko doesn't keep a list of running applications. (Gecko forks please correct me if I am wrong.) If you're aware of this, and be ready to patch gaia system app, welcome.
However I tend to:
* Have a new API for clear app data and a new permission for it. (or mozApps permission is enough?)
* Have settings have that permission.
* Have gecko do the app kill/stop automatically instead of calling "app.stop()" from settings app.
* Gecko would notify system app while app is killed now, but there's no info about 'start an app but leave it in background'. Maybe we need this additional event.
I know android has exposed running application info in settings, but to your use case we could put this new feature later. How do you think? Briefly, Do you really need to know running app info in settings right now?
"Zhiming, TANG(SWD2-SH-TCT)" <
zhimin...@tcl.com> 於 2013/8/28 下午5:54 寫道:
> Hi Alive,
>
>> If this is for clearData usage only, we shall use mozSettings (or new API) and let system app to observe the settings change to do the following stop or restart stuff.
>
> One concern is about security control. We think mozSettings is very popular permission which you might grant to most applications. But shuting down app is much more sensitive operation which is only available to system and settings app(pre-embeded app). Web API can be strictly controlled per app, till now mozIDOMApplicationMgmt is only available for settings app, so it looks safe for us.
>
> If you would kindly advise some mechanism to access Gaia System securely, we are glad to re-use gaia system, thanks.
>
> B.R.
> Tang zhiming
> ________________________________________
> From: Alive [
al...@mozilla.com]
> Sent: Wednesday, August 28, 2013 5:32 PM
> To: Zhiming, TANG(SWD2-SH-TCT)
> Cc:
ferjm...@gmail.com;
dev-w...@lists.mozilla.org;
fab...@mozilla.com; Amélie, KONG(SWD2-SH-TCT); Terry, YIN(SWD2-SH-TCT);
timd...@mozilla.com
> Subject: Re: Add some API for application manager
>
> Hi,
>
> As Tim had mentioned, why do we need to re-implement |stop application| in gecko?
> Do you want to have another app to behave the same role as Gaia System App?
>
> If this is for clearData usage only, we shall use mozSettings (or new API) and let system app to observe the settings change to do the following stop or restart stuff.
>
> I don't think we should dupe the so-called "application manager" in gecko layer because in the long run you would have gaia:system and gecko handle the same thing. It shall be left in gaia.
>
> zhiming tang <
zhimin...@tcl.com<mailto:
zhimin...@tcl.com>> 於 2013/8/28 下午5:18 寫道:
>
> Hi Fernando,
>
> Actually we had an internal discuss on combining stop() into clearData() before in order to make API simple.
> However in my opinion sometime user want to stop application without clearing the data and that's basic function app manager should afford. So they are now separated APIs.
>
> Thanks also for pointing out the usage of Promise. Since it's a new proposal and not get used in the webapi for web apps, I would still using DOMRequest for now to keep consistency.
>
> I would also like to explain the | type | of data calculating and clearing.
> USER_DATA = cookie + localStorage + indexedDB. They are typical "user data" generated during user is playing with the application. All of them live in your /data partition.
> CACHE stands for app cache or browsing cache which will goes into /cache partition. That is to say, clearing CACHE doesn't help user to reclaim any space on your data storage. But user could clear all the "trace" with clear USER_DATA+CACHE.
>
>
> B.R.
> Tang zhiming
> -------- Original Message --------
> Subject: Re: Add some API for application manager
> Date: Tue, 27 Aug 2013 15:40:07 +0200
>
dev-w...@lists.mozilla.org<mailto:
dev-w...@lists.mozilla.org>
>
al...@mozilla.com<mailto:
al...@mozilla.com>