Apps/WebRT: Difference between revisions

426 bytes removed ,  7 February 2012
Line 45: Line 45:
=== Features ===
=== Features ===


==== Stub Executable Creation ====
==== Stub Executable ====


The WebRT stub executable is a platform-specific executable that is responsible for downloading the WebRT library (if necessary), initiating self-update (if necessary), and for instantiating the WebRT libraries with an application-specific root and capabilities list.
The stub executable is a platform-specific executable that starts an app by invoking Firefox in webapp mode, using Firefox's -webapp command-line flag to specify the manifest of the app to start.


The executable is bound to an application manifest at creation time, using OS-specific bundling techniques.  When the executable starts up,  it performs self-checks as needed, and then launches a new window, pinned on the application domain, with a location of the application's launch domain and path.
The executable is bundled with Firefox, and Firefox makes a copy of it and binds the copy to the app manifest when a user installs an app. The executable updates itself if needed when it starts up by checking the Firefox version and replacing itself with a new version when the version of Firefox has changed.
 
The executable might also be bound at creation time to installer-provided metadata.  This could include, for example, a purchase receipt for access to paid content. If Firefox binds the executable, it will pass through the installData provided by the installing website; if a server binds the executable it is free to put whatever it wants in there.


==== Profile Management ====
==== Profile Management ====
canmove, Confirmed users
2,056

edits