Index

BrowserConfigHelper

new BrowserConfigHelper(appURL, manifestURL)

This class generates browser configuration object
from manifestURL or src provided.


The configuration object is used for BrowserFrame generation.



  • If manifestURL is provided, we would treat it as a web app,
    and then use Applications to fetch the remaining info we need
    to construct the options for mozbrowser iframe.



  • If only URL is provided, we would treat it as a web page.




The returned configuration object contains:



  • Origin: the same as appURL.

  • manifestURL: the same as manifestURL.



  • manifest: the parsed manifest object.


          If the app is not an entry point app,
    the manifest would be the reference of application manifest
    stored in Applications module.
    But if the app is an entry point app,
    we will do deep clone to generate a new object and
    replace the properties of entry point to proper position.


  • name: the name of the app, retrieved from manifest.



  • oop: indicate it's running out of process or in process.



Parameters:
Name Type Argument Description
appURL String

The URL of the app or the page to be opened.

manifestURL String optional 

The manifest URL of the app.