Commit Graph
23 Commits
Author SHA1 Message Date
Carsten "Tomcat" Book 0d35bb5bc1 Backed out changeset 50441cd0d6a1 (bug 1212321) for causing regressions 2015-11-25 12:37:24 +01:00
Vivien Nicolas 9fe1c61f9e Bug 1212321 - Stop painting on app launch. r=fabrice 2015-11-06 02:13:00 +01:00
Nick Robson 152a74db21 Bug 904479 - Added createPromiseWithId() that returns id of resolver r=kanru,nsm 2015-08-19 14:53:22 -07:00
Marco Castelluccio bea84021cb Bug 1191516 - Make checkInstalled return a DOMApplication object. r=fabrice 2015-08-08 15:26:00 -04:00
Carmen Jimenez dadf087676 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é 3f1b63ac20 Bug 1162791 - Add-ons should be enabled by default when installed r=ferjm 2015-05-20 23:06:03 -07:00
Fabrice Desré 3808bdf132 Bug 1118946 - API to provide localized properties r=ferjm,sicking 2015-03-05 22:43:57 -08:00
Mike Conley 04960b3864 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 673ef15020 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 11eee1568d Bug 1000305 - Part 1 - Add a getIcon() method. r=fabrice r=ehsan 2014-12-18 17:40:41 -05:00
Fabrice Desré 34b2f7e6ab Bug 1108096 - Langpack support for b2g/gaia r=ferjm,sicking 2015-01-10 15:00:27 -08:00
Carsten "Tomcat" Book 0aca939830 Backed out changeset df960e299bcd (bug 1108096) for m1 test failures 2015-01-12 09:02:13 +01:00
Fabrice Desré be5934b7bf Bug 1108096 - Langpack support for b2g/gaia r=ferjm,sicking 2015-01-10 15:00:27 -08:00
Ted Clancy d88abd7caa Bug 1000313 - Adding homescreen-webapps-manage permission. r=sicking 2014-11-02 14:04:08 -05:00
Fabrice Desré 32e0dfd39e Bug 1072090 - Add a way to enable and disable an app. r=myk,sicking 2014-10-23 16:40:08 -07:00
Wes Kocher 98c35b2d42 Backed out changeset 556dc4f97e08 (bug 1072090) for m-oth orange 2014-10-23 18:21:11 -07:00
Fabrice Desré 96b3aed0bd Bug 1072090 - Add a way to enable and disable an app. r=myk,sicking 2014-10-23 16:40:08 -07:00
Fabrice Desré 3c60198c3e 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 a789e0755f Bug 1065185 - Create content arrays rather than chrome arrays in DOM Apps. r=me 2014-10-03 10:05:51 +02:00
Fabrice Desré 7b307ea0da Bug 1063852 - Use webidl sequence for the receipts property. r=marco,bholley 2014-09-05 16:55:30 -07:00
Fabrice Desré b59ffc3654 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é 799c71c5ff Bug 1063852 - Use webidl sequence for the receipts property. r=marco,bholley 2014-09-05 16:55:30 -07:00
Birunthan Mohanathas bda06be9ed Bug 1058101 - Flatten dom/apps/src/ into parent directory. r=mccr8 2014-08-27 10:12:06 -07:00