Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Runtime and Security Model for Web Applications

James Ketrenos edited this page Sep 2, 2013 · 1 revision

Introduction

  1. The Latest Version
  2. The standalone manifest spec
  3. github repo
  4. System Applications Working Group
  5. Meeting minutes of the first F2F meeting was held 9-11 April 2013 in Madrid and hosted by Telefonica

The API

  • 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;

Comparation of config.xml and application manifest

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'

Comparation of Tizen web runtime and W3C runtime

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

Mozilla's Open Web App Manifest

Updates - Apr/19/2013

  • 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

Updates - Apr/22/2013

  • 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

Updates - Apr/27/2013

  • Initiated the collaboration between sysapps group and webapps group to replace xml with JSON.
  • Discussing how to split the tasks, manifest, extensions, etc...
Clone this wiki locally