Introduction

Webapps use javascript and the browser to provide an experience that is more tightly integrated with Ubuntu. The webapps team would like to be able to ship webapps as click packages. This page discusses how webapps ties in with ApplicationConfinement.

Implementation for 13.10

At a high-level, this is essentially the same process as for ApplicationConfinement, with the following differences:

A properly formatted Exec line is:

Exec=webbrowser-app --enable-back-forward --webapp \
     --webappUrlPatterns=https?://mobile.twitter.com/* \
     http://mobile.twitter.com

A properly formatted click security manifest is:

{
  "template": "ubuntu-webapp",
  "policy_groups": [
    "audio",
    "networking",
    "video"
  ],
  "policy_version": 1.0
}

Implementation for 14.04

This is essentially the same as for 13.10, except that:

A properly formatted Exec line is:

Exec=webapp-container --enable-back-forward --store-session-cookies \
     --webappUrlPatterns=https?://mobile.twitter.com/* \
     http://mobile.twitter.com

A properly formatted click security manifest is (this uses 14.04 policy with oxide):

{
  "template": "ubuntu-webapp",
  "policy_groups": [
    "audio",
    "content_exchange",
    "location",
    "networking",
    "video",
    "webview"
  ],
  "policy_version": 1.1
}

15.04 and ubuntu-html5-app-launcher

In 14.10 and earlier, app deverlopers could use ubuntu-html5-app-launcher with the ubuntu-sdk template. In 15.04 ubuntu-html5-app-launcher has merged with webapp-container and ubuntu-html5-app-launcher is deprecated and users should use the ubuntu-webapp template and specify webapp-container instead of html5-app-container in their .desktop file.

Considerations/Limitations

SecurityTeam/Specifications/WebAppsConfinement (last edited 2015-05-22 14:49:53 by jdstrand)