Webapps.jsm

The Webapps.jsm modules exposes the DOMApplicationRegistry, which is responsible for managing all of the Open Web Apps.

Importing

Components.utils.import("resource://gre/modules/Webapps.jsm"); // exported symbol is DOMApplicationRegistry


Method overview

init: function()
loadCurrentRegistry: function()
notifyAppsRegistryStart: function notifyAppsRegistryStart()
notifyAppsRegistryReady: function notifyAppsRegistryReady()
sanitizeRedirects: function sanitizeRedirects(aSource)
_saveWidgetsFullPath: function(aManifest, aDestApp)
appKind: function(aApp, aManifest)
updatePermissionsForApp: function(aId, aIsPreinstalled)
updateOfflineCacheForApp: function(aId)
installPreinstalledApp: function installPreinstalledApp(aId)
removeIfHttpsDuplicate: function(aId)
installSystemApps: function()
loadAndUpdateApps: function()
updateDataStore: function(aId, aOrigin, aManifestURL, aManifest)
_registerSystemMessagesForEntryPoint: function(aManifest, aApp, aEntryPoint)
_registerInterAppConnectionsForEntryPoint: function(aManifest, aApp,)
_registerSystemMessages: function(aManifest, aApp)
_registerInterAppConnections: function(aManifest, aApp)
_createActivitiesToRegister: function(aManifest, aApp, aEntryPoint, aRunUpdate)
_registerActivitiesForApps: function(aAppsToRegister, aRunUpdate)
_registerActivities: function(aManifest, aApp, aRunUpdate)
_createActivitiesToUnregister: function(aManifest, aApp, aEntryPoint)
_unregisterActivitiesForApps: function(aAppsToUnregister)
_unregisterActivities: function(aManifest, aApp)
_processManifestForIds: function(aIds, aRunUpdate)
observe: function(aSubject, aTopic, aData)
addMessageListener: function(aMsgNames, aApp, aMm)
removeMessageListener: function(aMsgNames, aMm)
formatMessage: function(aData)
receiveMessage: function(aMessage)
getAppInfo: function getAppInfo(aAppId)
broadcastMessage: function broadcastMessage(aMsgName, aContent)
registerUpdateHandler: function(aHandler)
unregisterUpdateHandler: function(aHandler)
notifyUpdateHandlers: function(aApp, aManifest, aZipPath)
_getAppDir: function(aId)
_writeFile: function(aPath, aData)
doGetList: function()
doExport: function(aMsg, aMm)
doImport: function(aMsg, aMm)
doExtractManifest: function(aMsg, aMm)
doLaunch: function (aData, aMm)
launch: function launch(aManifestURL, aStartPoint, aTimeStamp, aOnSuccess, aOnFailure)
close: function close(aApp)
cancelDownload: function cancelDownload(aManifestURL, aError)
startOfflineCacheDownload: function(aManifest, aApp, aProfileDir, aIsUpdate)
computeManifestHash: function(aManifest)
updateAppHandlers: function(aOldManifest, aNewManifest, aApp)
checkForUpdate: function(aData, aMm)
doInstall: function doInstall(aData, aMm)
doInstallPackage: function doInstallPackage(aData, aMm)
pushContentAction: function(windowID)
popContentAction: function(windowID)
actionCancelled: function(windowID)
denyInstall: function(aData)
_setupApp: function(aData, aId)
_cloneApp: function(aData, aNewApp, aLocaleManifest, aManifest, aId, aLocalId)
_writeManifestFile: function(aId, aIsPackage, aJsonManifest)
_nextLocalId: function()
_appIdForManifestURL: function(aURI)
makeAppId: function()
_saveApps: function()
_readManifests: function(aData)
_ensureSufficientStorage: function(aNewApp)
_checkDownloadSize: function(aFreeBytes, aNewApp)
_getRequestChannel: function(aFullPackagePath, aIsLocalFileInstall, aOldApp,)
_sendDownloadProgressEvent: function(aNewApp, aProgress)
_getPackage: function(aRequestChannel, aId, aOldApp, aNewApp)
_computeFileHash: function(aFilePath)
_sendAppliedEvent: function(aApp)
_openAndReadPackage: function(aZipFile, aOldApp, aNewApp, aIsLocalFileInstall,)
_openPackage: function(aZipFile, aApp, aIsLocalFileInstall)
_openSignedPackage: function(aInstallOrigin, aManifestURL, aZipFile, aCertDb)
_readPackage: function(aOldApp, aNewApp, aIsLocalFileInstall, aIsUpdate,)
_checkSignature: function(aApp, aIsSigned, aIsLocalFileInstall)
_saveEtag: function(aIsUpdate, aOldApp, aRequestChannel, aHash, aManifest)
_checkOrigin: function(aIsSigned, aOldApp, aManifest, aIsUpdate)
_getIds: function(aIsSigned, aZipReader, aConverter, aNewApp, aOldApp,)
_checkForStoreIdMatch: function(aIsUpdate, aNewApp, aStoreId, aStoreVersion)
revertDownloadPackage: function(aId, aOldApp, aNewApp, aIsUpdate, aError)
uninstall: function(aManifestURL)
_promptForUninstall: function(aData)
confirmUninstall: function(aData)
denyUninstall: function(aData, aReason = "ERROR_UNKNOWN_FAILURE")
getSelf: function(aData, aMm)
checkInstalled: function(aData, aMm)
getInstalled: function(aData, aMm)
getNotInstalled: function(aData, aMm)
getIcon: function(aData, aMm)
getAll: function(aCallback)
isReceipt: function(data)
addReceipt: function(aData, aMm)
removeReceipt: function(aData, aMm)
replaceReceipt: function(aData, aMm)
setEnabled: function(aData)
getManifestFor: function(aManifestURL, aEntryPoint)
getAppByManifestURL: function(aManifestURL)
getFullAppByManifestURL: function(aManifestURL, aEntryPoint, aLang)
getManifestCSPByLocalId: function(aLocalId)
getDefaultCSPByLocalId: function(aLocalId)
getAppLocalIdByStoreId: function(aStoreId)
getAppByLocalId: function(aLocalId)
getManifestURLByLocalId: function(aLocalId)
getAppLocalIdByManifestURL: function(aManifestURL)
getCoreAppsBasePath: function()
getWebAppsBasePath: function()
_isLaunchable: function(aApp)
_notifyCategoryAndObservers: function(subject, topic, data, msg)
registerBrowserElementParentForApp: function(aMsg, aMn)
receiveAppMessage: function(appId, message)
_clearPrivateData: function(appId, browserOnly, msg)
_sendProgressEvent: function()
updateStateChanged: function appObs_Update(aUpdate, aState)
applicationCacheAvailable: function appObs_CacheAvail(aApplicationCache)