forked from crosswalk-project/crosswalk
-
Notifications
You must be signed in to change notification settings - Fork 1
Runtime and Security Model for Web Applications
Alexis Menard edited this page Jul 12, 2013
·
1 revision
- The Latest Version
- The standalone manifest spec
- github repo
- System Applications Working Group
- Meeting minutes of the first F2F meeting was held 9-11 April 2013 in Madrid and hosted by Telefonica
- ApplicationRegistry
- DOMRequest install (DOMString manifestUrl, [Optional] Object parameters); (Permission check)
- DOMRequest getSelf ();
- DOMRequest getInstalled ();
- DOMRequest checkInstalled (DOMString manifestURL);
- attribute ApplicationManagement? management;
- Application
- readonly attribute DOMString origin;
- readonly attribute Object manifest;
- readonly attribute DOMString installOrigin;
- readonly attribute unsigned long installTime;
- readonly attribute Object parameters;
- DOMRequest launch (); (Permission check)
- DOMRequest uninstall (); (Permission check)
- readonly attribute DOMString updateState;
- readonly attribute unsigned long downloadSize;
- DownloadRequest? downloadUpdate ();
- readonly attribute DOMString state;;
- void hide ();
- void exit ();
- attribute EventHandler onlaunch;
- attribute EventHandler onpause;
- attribute EventHandler onresume;
- attribute EventHandler onterminate;
- ApplicationManagement (webapps-manage Allow access to the navigator.apps.management API to manage installed webapps.)
- DOMRequest getAll ();
- DOMRequest applyUpdate (Application application);
- attribute EventHandler oninstall;
- attribute EventHandler onuninstall;
config.xml | manifest | |
---|---|---|
Configformat | xml | JSON |
Package format | zip | zip |
Zip contents | Fixed format(file name,folder name, locales..) | Only manifest |
Application life cycle | N/A |
3 status: running, paused, terminated |
Supporting devices | Tizen,PhoneGap,BB,.. | N/A |
Security Model | 'feature' | 'required_features' |
Actually, Tizen web runtime could be looked as w3c widget + DeviceAPI/Application, since we've already compared widget and manifest, so let's go through the difference between DeviceAPI/Application and W3C runtime.
Tizen DeviceAPI/Application | W3C runtime | |
---|---|---|
Application Status | Visible,hidden,terminated | running, paused, terminated |
Call back | N/A |
onpause/onresume/onterminate/onlaunch |
Background | hidden but running | N/A |
Install/Uninstall | N/A |
ApplicationRegistry/ApplicationManagement |
Install/Uninstall call back | oninstalled/onuninstalled | oninstall/onuninstall |
Able to update an existing application | no |
yes |
Able to enum all installed applications | no |
yes |
Able to find specific application | yes |
yes |
Able to launch another application | yes |
yes |
Launch parameter | yes |
N/A |
Launch callback | yes |
yes |
Extension point | Tizen | Navigator |
- First Public Working Draft 21 March 2013
- Prefer JSON over XML, and consequently prefer runtime manifest over widget config.xml.
- There will be a transition from widget to packaged app and therefore there will be a tool to convert xml to JSON.
- Active members agreed this transition: Mozilla,Samsung,Intel,RIM (Blackberry)...
- Currently widget Spec is used by: Tizen, BlackBerry, Cordova, etc..
- Agreed that there should be a spec about mappings between widgets xml and runtime manifest
- There has been a lot argument surrounding the new URI scheme - app://
- The URI:app is going to the FPWD.
- The application manifest is going to be splitted into another specification whereas the reduced one will not.
- The new manifest spec
- github location
- Initiated the collaboration between sysapps group and webapps group to replace xml with JSON.
- Discussing how to split the tasks, manifest, extensions, etc...