gecko-dev/browser
Kirk Steuber 19c8368ea5 Bug 1458314 - Move the update directory to an installation specific location r=rstrong
This change applies to Windows only.
Firefox will need to migrate the directory from the old location to the new location. This will be done only once by setting the pref `app.update.migrated.updateDir2.<install path hash>` to `true` once migration has completed.

Note: The pref name app.update.migrated.updateDir has already been used, thus the '2' suffix. It can be found in ESR24.

This also removes the old handling fallback for generating the update directory path. Since xulrunner is no longer supported, this should no longer be needed. If neither the vendor nor app name are defined, it falls back to the literal string "Mozilla".

The code to generate the update directory path and the installation hash have been moved to the updatecommon library. This will allow those functions to be used in Firefox, the Mozilla Maintenance Service, the Mozilla Maintenance Service Installer, and TestAUSHelper.

Additionally, the function that generates the update directory path now has extra functionality. It creates the update directory, sets the permissions on it and, optionally, recursively sets the permissions on everything within.

This patch adds functionality that allows Firefox to set permissions on the new update directory on write failure. It attempts to set the permissions itself and, if that fails and the maintenance service is enabled, it calls into the maintenance service to try from there. If a write fails and the permissions cannot be fixed, the user is prompted to reinstall.

Differential Revision: https://phabricator.services.mozilla.com/D4249

--HG--
rename : toolkit/mozapps/update/updater/win_dirent.cpp => toolkit/mozapps/update/common/win_dirent.cpp
rename : toolkit/mozapps/update/tests/unit_aus_update/cleanupSuccessLogMove.js => toolkit/mozapps/update/tests/unit_aus_update/updateDirectoryMigrate.js
extra : moz-landing-system : lando
2018-10-23 21:41:04 +00:00
..
actors Bug 1500020 - Update cert error page copy based on UX suggestions. r=nhnt11 2018-10-19 14:50:59 +00:00
app Merge mozilla-central to mozilla-inbound. a=merge 2018-10-20 13:32:54 +03:00
base Merge autoland to mozilla-central a=merge 2018-10-24 01:15:18 +03:00
branding Bug 1471657 - Update Nightly DMG background to high-res r=Dolske 2018-08-21 20:54:30 +00:00
components Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-10-24 01:22:06 +03:00
config Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2018-10-22 08:50:03 -07:00
docs Bug 1498178 - Add in-tree documentation for the Quantum Bar r=mikedeboer 2018-10-19 13:45:19 +00:00
extensions Bug 1486954 - Part IV, Recover from decryption errors in some places. r=MattN 2018-10-22 22:57:29 -07:00
fonts
installer Bug 1458314 - Move the update directory to an installation specific location r=rstrong 2018-10-23 21:41:04 +00:00
locales Bug 1500553 - Add CFR preference UI to about:preferences r=flod,ursula,k88hudson 2018-10-20 12:38:08 +00:00
modules Bug 1501079 - fix various tests to not race with window focus/activate, r=dao 2018-10-23 10:16:35 +00:00
themes Merge autoland to mozilla-central a=merge 2018-10-24 01:15:18 +03:00
tools/mozscreenshots Bug 1373563 - More specific mozscreenshots cropping for PermissionPrompts and ControlCenter. r=johannh 2018-10-18 15:31:45 -07:00
.eslintrc.js
app.mozbuild
build.mk
confvars.sh Bug 1491419 - move --enable-bundled-fonts to moz.configure; r=nalexander 2018-10-01 14:51:28 -04:00
defs.mk
LICENSE
Makefile.in
moz.build Bug 1465251 - use PrioEncoder to encode Telemetry values for pilot project r=kmag 2018-09-09 00:23:52 +00:00
moz.configure Bug 1493315: Build config for dedicated profiles and downgrade protection. r=ted 2018-09-21 23:32:55 +00:00