Commit Graph

21 Commits

Author SHA1 Message Date
Nick Robson
f3e110d556 Bug 904479 - Added createPromiseWithId() that returns id of resolver r=kanru,nsm 2015-08-19 14:53:22 -07:00
Marco Castelluccio
b2421d41db Bug 1191516 - Make checkInstalled return a DOMApplication object. r=fabrice 2015-08-08 15:26:00 -04:00
Carmen Jimenez
da4d0fd10a Bug 1173666 - Expose the URL of the page that calls mozApps.connect to the app exposing the port. r=ferjm, r=baku 2015-07-05 08:45:00 -04:00
Fabrice Desré
90d42aefc7 Bug 1162791 - Add-ons should be enabled by default when installed r=ferjm 2015-05-20 23:06:03 -07:00
Fabrice Desré
43cf332b60 Bug 1118946 - API to provide localized properties r=ferjm,sicking 2015-03-05 22:43:57 -08:00
Mike Conley
9c2406f932 Bug 1077168 - Cancel in-flight Webapp install jobs from windows that change location. r=myk.
Installing a Webapp is an asynchronous job, and there is a pocket of time
between when web content requests to install an app and before the browser
displays an installation prompt that the outer window of the content can
browse away. This pocket of time is typically used by XHR to request the
web app resources and verify their contents.

This pocket of time is, essentially, bug 771294, and is a bit of a security
problem.

This problem was originally patched over on Desktop by checking in the parent
process that the outer window was still at the same URI as it had been when it
made the request. I'm not entirely sure if Android / B2G made similar checks.

With separated content processes, however, the browser front-end can no longer
performantly check to ensure that the outer window is at the same URI.

We solve this problem by sending up a message in the content process when
the location of an outer window making use of navigator.mozApps changes.
We hold a Map of "actions" mapping to in-flight installs mapped by the
outer window ID of the requesting content. When we notice a location
change, we mark those actions as cancelled. When the XHR returns, we have
it check the state of its actions, and if they're cancelled, it aborts
further action.

Normally, this wouldn't be necessary, since any XHR initiated by the
content window would be cancelled once the location changed, but in
this case, the XHR is occurring in Webapps.jsm, and is not influenced
by the outer window of the content.
2015-02-10 13:18:47 -05:00
Mike Conley
d41da12228 Bug 1077168 - Have Webapps.js pass up the outerWindowID of the top window with each message. r=felipe. 2015-02-11 12:03:12 -05:00
Ted Clancy
3852ba3695 Bug 1000305 - Part 1 - Add a getIcon() method. r=fabrice r=ehsan 2014-12-18 17:40:41 -05:00
Fabrice Desré
dff16cb177 Bug 1108096 - Langpack support for b2g/gaia r=ferjm,sicking 2015-01-10 15:00:27 -08:00
Carsten "Tomcat" Book
130ce3d4f2 Backed out changeset df960e299bcd (bug 1108096) for m1 test failures 2015-01-12 09:02:13 +01:00
Fabrice Desré
c7af489b53 Bug 1108096 - Langpack support for b2g/gaia r=ferjm,sicking 2015-01-10 15:00:27 -08:00
Ted Clancy
ba48994bc6 Bug 1000313 - Adding homescreen-webapps-manage permission. r=sicking 2014-11-02 14:04:08 -05:00
Fabrice Desré
d1fa0b26d7 Bug 1072090 - Add a way to enable and disable an app. r=myk,sicking 2014-10-23 16:40:08 -07:00
Wes Kocher
35470b2b41 Backed out changeset 556dc4f97e08 (bug 1072090) for m-oth orange 2014-10-23 18:21:11 -07:00
Fabrice Desré
f3c9b8625c Bug 1072090 - Add a way to enable and disable an app. r=myk,sicking 2014-10-23 16:40:08 -07:00
Fabrice Desré
a29f642734 Bug 982874 - Import / export API for apps : Part 2: dom/webapps implementation r=marco,sicking 2014-10-14 22:55:14 -07:00
Bobby Holley
918d525fdc Bug 1065185 - Create content arrays rather than chrome arrays in DOM Apps. r=me 2014-10-03 10:05:51 +02:00
Fabrice Desré
01fb974a15 Bug 1063852 - Use webidl sequence for the receipts property. r=marco,bholley 2014-09-05 16:55:30 -07:00
Fabrice Desré
38f8927401 backout bug 1063852 (84ac3d72395f) since that breaks Gij. r=bholley to please the dom/ hook. 2014-09-07 20:04:58 -07:00
Fabrice Desré
77ab2ede05 Bug 1063852 - Use webidl sequence for the receipts property. r=marco,bholley 2014-09-05 16:55:30 -07:00
Birunthan Mohanathas
f882bf3044 Bug 1058101 - Flatten dom/apps/src/ into parent directory. r=mccr8
--HG--
rename : dom/apps/src/AppDownloadManager.jsm => dom/apps/AppDownloadManager.jsm
rename : dom/apps/src/AppsService.js => dom/apps/AppsService.js
rename : dom/apps/src/AppsService.manifest => dom/apps/AppsService.manifest
rename : dom/apps/src/AppsServiceChild.jsm => dom/apps/AppsServiceChild.jsm
rename : dom/apps/src/AppsUtils.jsm => dom/apps/AppsUtils.jsm
rename : dom/apps/src/FreeSpaceWatcher.jsm => dom/apps/FreeSpaceWatcher.jsm
rename : dom/apps/src/InterAppComm.cpp => dom/apps/InterAppComm.cpp
rename : dom/apps/src/InterAppComm.h => dom/apps/InterAppComm.h
rename : dom/apps/src/InterAppComm.manifest => dom/apps/InterAppComm.manifest
rename : dom/apps/src/InterAppCommService.js => dom/apps/InterAppCommService.js
rename : dom/apps/src/InterAppCommService.jsm => dom/apps/InterAppCommService.jsm
rename : dom/apps/src/InterAppConnection.js => dom/apps/InterAppConnection.js
rename : dom/apps/src/InterAppMessagePort.js => dom/apps/InterAppMessagePort.js
rename : dom/apps/src/OfflineCacheInstaller.jsm => dom/apps/OfflineCacheInstaller.jsm
rename : dom/apps/src/OperatorApps.jsm => dom/apps/OperatorApps.jsm
rename : dom/apps/src/PermissionsInstaller.jsm => dom/apps/PermissionsInstaller.jsm
rename : dom/apps/src/PermissionsTable.jsm => dom/apps/PermissionsTable.jsm
rename : dom/apps/src/ScriptPreloader.jsm => dom/apps/ScriptPreloader.jsm
rename : dom/apps/src/StoreTrustAnchor.jsm => dom/apps/StoreTrustAnchor.jsm
rename : dom/apps/src/Webapps.js => dom/apps/Webapps.js
rename : dom/apps/src/Webapps.jsm => dom/apps/Webapps.jsm
rename : dom/apps/src/Webapps.manifest => dom/apps/Webapps.manifest
2014-08-27 10:12:06 -07:00