Граф коммитов

39 Коммитов

Автор SHA1 Сообщение Дата
Mike Conley 448f596abf 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.

--HG--
extra : rebase_source : 5f95002a21c96c5cbf3dca8ca265400448251b43
2015-02-10 13:18:47 -05:00
Ted Clancy 09e95882bb Bug 1000305 - Part 1 - Add a getIcon() method. r=fabrice r=ehsan
--HG--
extra : rebase_source : 59392a01a983bf1dbbdfad5c06d3e3e4a5facf8a
2014-12-18 17:40:41 -05:00
Chris Peterson fb9a27f3f9 Bug 1093721 - Avoid ReferenceError when trying to instantiate Components.classes['@mozilla.org/app-migrator;1']. r=qdot 2015-02-08 13:48:29 -08:00
Christoph Kerschbaumer 26cde7af39 Bug 1087728: Make JS callers of ios.newChannel call ios.newChannel2 in dom/apps (r=fabrice) 2015-02-05 12:53:56 -08:00
Fabrice Desré 2440b76622 Bug 1108096 - Langpack support for b2g/gaia r=ferjm,sicking 2015-01-10 15:00:27 -08:00
Carsten "Tomcat" Book 248d09bf46 Backed out changeset df960e299bcd (bug 1108096) for m1 test failures 2015-01-12 09:02:13 +01:00
Fabrice Desré 10b13ff557 Bug 1108096 - Langpack support for b2g/gaia r=ferjm,sicking 2015-01-10 15:00:27 -08:00
Markus Nilsson af1b4ca6e0 Bug 1090820 - OTA update check never clears status. r=fabrice 2015-01-09 13:32:47 -08:00
Sean Lin d8cb1c1960 Bug 1078115 - Make the transaction of app update atomic. r=fabrice 2014-12-18 18:13:31 +08:00
Antonio M. Amaya 5b33913d44 Bug 1110119 - At first boot time, check that the app being preinstalled doesn't already exist by manifestURL. r=fabrice 2014-12-11 08:00:00 -05:00
Fabrice Desré 130be9050a Bug 923897 - Extensibility support for b2g r=ferjm,bholley 2014-12-16 15:32:28 -08:00
Antonio M. Amaya 835a566bb7 Bug 1096971 - Update the minimanifest etag and hash correctly on resume. r=fabrice 2014-11-21 10:45:00 +01:00
Antonio M. Amaya f748c30af9 Bug 1096971 - Don't propagate an error when the package downloaded was the same we had. r=fabrice 2014-11-17 02:01:00 +01:00
Zoran Jovanovic 15395488a6 Bug 1066013 - Initialize appCache path r=fabrice 2014-11-12 11:36:36 -08:00
Antonio M. Amaya 4086676d8a Bug 1022791 - Keep previous values for PROMPT permissions on system updates. r=fabrice 2014-11-03 02:24:00 -05:00
Antonio M. Amaya acef08daa0 Bug 1092152 - Don't calculate the downloaded file hash if we didn't download it. r=fabrice 2014-10-31 10:36:00 -04:00
Markus Nilsson 62bb2772cc Bug 1084501 - Set proper permissions for pre-installed trusted apps. r=fabrice
When trusted hosted apps were installed from a preloaded
offline cache their permissions were not correctly set
due to information on 'kind' of application being missing
on pre-install.
---
 dom/apps/Webapps.jsm | 2 ++
 1 file changed, 2 insertions(+)
2014-11-03 11:08:06 -08:00
Ted Clancy e47c829183 Bug 1000313 - Adding homescreen-webapps-manage permission. r=sicking 2014-11-02 14:04:08 -05:00
Fabrice Desré ede3c227e9 Bug 1083454 - Aborting marionette tests is causing bootup failure r=gwagner 2014-10-27 17:40:13 -07:00
Fabrice Desré 3c4d11e817 Bug 1072090 - Add a way to enable and disable an app. r=myk,sicking 2014-10-23 16:40:08 -07:00
Wes Kocher 1864a13f49 Backed out changeset 556dc4f97e08 (bug 1072090) for m-oth orange 2014-10-23 18:21:11 -07:00
Fabrice Desré 7e4662b2bd Bug 1072090 - Add a way to enable and disable an app. r=myk,sicking 2014-10-23 16:40:08 -07:00
Fabrice Desré bac34b231b Bug 982874 - Import / export API for apps : Part 2: dom/webapps implementation r=marco,sicking 2014-10-14 22:55:14 -07:00
Zoran Jovanovic 3d1f9cf2fc Bug 1077529 - Update Trusted Hosted Apps r=fabrice
Verify manifest of trusted hosted app on update instead
of just overwriting it.
---
 dom/apps/TrustedHostedAppsUtils.jsm |  8 ++++----
 dom/apps/Webapps.jsm                | 26 +++++++++++++++++++++-----
 2 files changed, 25 insertions(+), 9 deletions(-)
2014-10-14 12:28:16 -07:00
Junior Hsu 50235aed2f Bug 1074086 - Save widgetPages in UpdateAppHandlers and remove redundant saving. r=fabrice 2014-10-07 18:23:00 +02:00
Alexandre Lissy fbfcc287e9 Bug 993011 - Update eisting Gaia apps fields. r=fabrice
When performing an update, whether OTA or FOTA, some already existing
Gaia apps field may have changed. This happened in the past with bug
989876 where we lacked a proper updateTime value, and this may bite us
later. So we update all field, except some that we now must not be
changing.
2014-10-01 08:37:00 +02:00
Fabrice Desré 38972332f5 Bug 1070932 - Updates error handling code can fail r=marco 2014-09-26 10:23:21 -07:00
Ryan VanderMeulen cde3e01598 Merge fx-team to m-c. a=merge 2014-09-24 15:58:32 -04:00
Kyle Machulis 64b49e97a2 Bug 1058180 - Only create app migrator when absolutely needed; r=fabrice 2014-09-23 13:22:54 -07:00
Kyle Machulis 1ca472946f Backing out 6d28e030fd7b (bug 1058180) due to causing crashes on desktop on a CLOSED TREE 2014-09-22 16:01:50 -07:00
Kyle Machulis 5a5d76a631 Bug 1058180 - Only create app migrator when absolutely needed; r=fabrice 2014-09-22 14:45:39 -07:00
Vlatko Markovic cb9c35ec9f Bug 1059216 - Verification of Trusted Hosted Apps manifest signature, part 2. r=sicking 2014-09-22 07:59:00 -07:00
Vlatko Markovic 8818f4947f Bug 1059216 - Verification of Trusted Hosted Apps manifest signature, part 1. r=dkeeler,rlb 2014-09-22 07:58:59 -07:00
Zoran Jovanovic 1c124be1f8 Bug 1059202 - CSP and CA verfication for Trusted Hosted Apps r=fabrice,sicking,rlb 2014-09-19 14:58:34 -07:00
Fabrice Desrï¿© c3c5629dc0 Bug 902165 - System JS : ERROR resource://gre/modules/BrowserElementParent.jsm:219 ReferenceError: DOMApplicationRegistry is not defined in green B2G mochitest-3 runs r=bent 2014-09-24 16:14:54 +10:00
Vlatko Markovic 892881d00d Bug 1059194 - Trusted Hosted Apps, part 2: CSP infrastructure changes. r=sicking 2014-09-16 13:14:02 -07:00
Vlatko Markovic 21eb50d0cc Bug 1059194 - Trusted Hosted Apps, part 1: App installation & Run. r=fabrice 2014-09-16 13:14:02 -07:00
Fabrice Desré 12c324bdd8 Bug 1056424 - Stuck at loading screen during power cut off test r=myk 2014-09-05 16:41:24 -07:00
Birunthan Mohanathas b09d89b288 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