sysapps / runtime

Runtime and Security Model for Hosted Web Applications and Packaged Applications
6 stars 13 forks source link

Application event handlers exposed in another app's context #106

Closed jmajnert closed 9 years ago

jmajnert commented 11 years ago

Let's consider that application MyAppStore installs another app - MyApp. Now, in MyAppStore we request all installed apps by calling navigator.app.getInstalled() and then get a reference to the Application instance representing MyApp. Then we do:

myapp.onlaunch=myAppStoreFunction(); myapp.launch()

Questions:

  1. Should myAppStoreFunction() be executed in MyAppStore?
  2. Assuming MyApp declares its own onlaunch handler, should it be executed, or should myAppStoreFunction() be executed instead?
jmajnert commented 9 years ago

Not relevant anymore