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

152 Коммитов

Автор SHA1 Сообщение Дата
Robert Strong 6c7cf8b65e Bug 1502681 - Always use ProgramData\Mozilla\updates for the updates directory. r=bytesized
Changes GetCommonUpdateDirectory to always return a directory under ProgramData\Mozilla\updates on Windows
Changes getMockUpdRootDWin to always return ProgramData\Mozilla\updates for the new updates dir location
Removed code that is no longer used in getMockUpdRootDWin
Fixes a build time warning that get_relative_path is not used in updater.cpp
2018-10-29 11:21:49 -07:00
Jeff Gilbert 02e6ff5ccb Bug 1499587 - Fix win64 clang-cl -Wwritable-strings. r=ted
Differential Revision: https://phabricator.services.mozilla.com/D9031

--HG--
extra : moz-landing-system : lando
2018-10-25 14:16:27 +00:00
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
Jeff Gilbert de3080c204 Bug 1499870 - Fix -Wlogical-op-parentheses. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D9033

--HG--
extra : moz-landing-system : lando
2018-10-17 21:11:27 +00:00
Tom Ritter 7e0fefeaa0 Bug 1475566 Disable #pragma comments for MinGW Builds r=glandium
In the MinGW browser build job, we're going to use -fms-extensions,
which will tell clang to start processing these comments. Clang
cannot process them correctly (it's an upstream bug) but it doesn't
need to, because we include the libs we need in moz.build files.

So we exclude them for MinGW builds. mingw-clang gets them wrong and
mingw-gcc (which doesn't even work anymore on -central) ignored them.

In the future, with a llvm fix, we could clean up the moz.build
files and re-enable these comments.

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

--HG--
extra : moz-landing-system : lando
2018-08-29 03:50:39 +00:00
Masatoshi Kimura 3b21b7868b Bug 1090497 - Re-enable warnings as errors on clang-cl. r=froydnj
--HG--
extra : rebase_source : c09366fb93e5b0f72abe1e99d3094e3d96a934fb
extra : intermediate-source : 5950c9d63c3b4fd63a25464a7b50944aaec7079f
extra : source : ca1b9a2bcc4381795f556fea2fb59066567c30f3
2018-07-31 22:10:07 +09:00
Aaron Klotz c6740bdbdb Bug 1457999: Part 2 - Update the updater and maintenance service with changes made in part 1; r=mhowell 2018-04-19 17:23:31 -06:00
Aaron Klotz fc0ccc0ce0 Bug 1457999: Backed out changeset fc8e373f027c for Linux bustage; r=backout CLOSED TREE
--HG--
extra : histedit_source : 854dd111964c26015bfc99ae9cc2c75cfd7a182e
2018-05-07 11:21:32 -06:00
Aaron Klotz 7afbb5cc1c Bug 1457999: Part 2 - Update the updater and maintenance service with changes made in part 1; r=mhowell 2018-04-19 17:23:31 -06:00
Aaron Klotz 700a2481d1 Bug 1457999: Backed out changeset 5d72ee6c1126 due to Linux preprocessor errors; r=backout CLOSED TREE
--HG--
extra : histedit_source : 14f72513d6023289f4b19cf1349a34c386c4658b
2018-05-07 11:00:22 -06:00
Aaron Klotz f1af8f8365 Bug 1457999: Part 2 - Update the updater and maintenance service with changes made in part 1; r=mhowell
--HG--
extra : rebase_source : 2bdc418c2639323529973ecc5ab3f68b72b301ea
2018-04-19 17:23:31 -06:00
Matt Howell 6ecac8dcbe Bug 1454448 - Properly handle an allocation failure. r=rstrong
--HG--
extra : source : 2ffab631254168fa26ceddd56480b72eb936d633
2018-04-19 14:14:53 -07:00
Sylvestre Ledru 9e7f918015 bug 1378834 - Update of the installers to reflect the nightly name change r=mhowell,dao
BrandFullName is now defined in the branding files


MozReview-Commit-ID: 5wmInT9xbrT
2017-12-21 22:13:07 +02:00
Dorel Luca 6c33c9bab7 Backed out changeset ffc76e7fc38b (bug 1378834) for failing Browser-chrome on toolkit/xre/test/browser_checkdllblockliststate.js on a CLOSED TREE 2017-12-21 21:03:21 +02:00
Sylvestre Ledru f42229fb7d bug 1378834 - Update of the installers to reflect the nightly name change r=mhowell,dao
BrandFullName is now defined in the branding files


MozReview-Commit-ID: 5wmInT9xbrT

--HG--
extra : histedit_source : 28df1fc3cafda4f9146af7d4f207263abac6f6ec
2017-12-18 16:17:01 +01:00
Cosmin Sabou 1204c668a2 Backed out 5 changesets (bug 1423856, bug 1404796, bug 1378834, bug 1404823) for build bustages on compare-mozconfigs-wrapper.py r=backout on a CLOSED TREE
Backed out changeset 8d8bb8542b3d (bug 1423856)
Backed out changeset 42339ef2360c (bug 1404796)
Backed out changeset 75fd371db04b (bug 1404823)
Backed out changeset 3011254797d5 (bug 1378834)
Backed out changeset c76ad732c275 (bug 1378834)
2017-12-21 00:52:28 +02:00
Sylvestre Ledru 6b9fc8ffaf bug 1378834 - Update of the installers to reflect the nightly name change r=mhowell,dao
BrandFullName is now defined in the branding files


MozReview-Commit-ID: 5wmInT9xbrT

--HG--
extra : rebase_source : f22be9058c8ba4e9a7988e5df0130ac89f0116b3
extra : histedit_source : 292da497cb326e2cae83c0c3a618dc676e320c2e
2017-12-18 16:17:01 +01:00
Sylvestre Ledru 5de63ef061 Bug 1394734 - Replace CONFIG['MSVC'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 5orfnoude7h

--HG--
extra : rebase_source : 1ed9a6b56e1d27221a07624767a7fb0e6147117f
2017-12-08 13:46:13 +01:00
Mike Hommey 501ba627bc Bug 1423416 - Remove updatecommon-standalone. r=ted
Maybe there was a time where both updatecommon and
updatecommon-standalone were used in the same configuration, but it's
currently not the case. So the distinction between both is not
necessary, and updatecommon can just become the standalone version of
itself on Windows.

--HG--
extra : rebase_source : effa3c7aa3bbaab33b335f23a71a8807ef69ab59
2017-12-06 10:47:15 +09:00
Ryan VanderMeulen 05214a3fca Backed out changesets d60d9897fd39 and c508081bb938 (bug 1378834) for various regressions. r=sledru, a=me 2017-10-02 18:33:39 -04:00
Sylvestre Ledru 99d452a04f bug 1378834 - Update of the installers to reflect the nightly name change r=mhowell
BrandFullName is now defined in the branding files


MozReview-Commit-ID: 5wmInT9xbrT

--HG--
extra : rebase_source : 97f85c75026a354cbd7f55a4ed9860abad56820b
2017-09-12 09:06:09 +02:00
Sebastian Hengst b8159107fa Backed out changeset 3ad6c35d7220 (bug 1378834) 2017-09-13 14:53:57 +02:00
Sylvestre Ledru 09ed22d084 bug 1378834 - Update of the installers to reflect the nightly name change r=mhowell
BrandFullName is now defined in the branding files


MozReview-Commit-ID: 5wmInT9xbrT

--HG--
extra : rebase_source : e10448351ba4b1623c123eb87a1ddb69a1104cd0
2017-09-12 09:06:09 +02:00
Chris Manchester c0a229d4c3 Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium
MozReview-Commit-ID: FMEtb5PY7iP

--HG--
extra : rebase_source : 3cdee7528846462c758e623d6bcd2e6e17dbabff
2017-09-11 11:33:26 -07:00
Sylvestre Ledru 4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Robert Strong 35aaed5fff Client code - Bug 1234401 - check that the patch dir subdirectory is valid. r=mhowell 2017-04-28 16:37:37 -07:00
Robert Strong 0de416e483 Client code - Bug 1342742 - check that the app update patch dir, install dir, and working dir paths are valid. r=mhowell
--HG--
rename : toolkit/mozapps/update/common/updatelogging.cpp => toolkit/mozapps/update/common/updatecommon.cpp
rename : toolkit/mozapps/update/common/updatelogging.h => toolkit/mozapps/update/common/updatecommon.h
2017-04-28 16:36:45 -07:00
Robert Strong d760090512 Bug 1336979 - Remove unnecessary logging of the update.status contents in the maintenance service. r=mhowell 2017-04-19 22:59:30 -07:00
Daniel Holbert 95a650ec1b Bug 1343975: Get rid of all dos/windows linebreaks in Mozilla C++ code. r=ehsan
This is an automated patch, generated by the following command:
find . -name "*.h" -exec fromdos {} \; && \
  find . -name "*.cpp" -exec fromdos {} \; && \
  hg revert -C gfx/angle \
               gfx/sfntly \
               media/webrtc \
               media/libstagefright \
               media/openmax_il \
               other-licenses

MozReview-Commit-ID: Gunlz3vE3h6
2017-03-02 13:08:29 -08:00
Sebastian Hengst 940ecb23ef Bug 1334883 - Remove code NSIS pre-3.0a2 code from installer. r=mhowell
MozReview-Commit-ID: 7mhVME2tUcv
2017-01-31 11:25:18 +01:00
Masatoshi Kimura 5aabeea338 Bug 1325217 - Remove Windows Vista from <supportedOS> manifest. r=jimm
MozReview-Commit-ID: BoZo3XKCgv0

--HG--
extra : rebase_source : 8ad6fa7d6fcc3741e308287a57471f61dd62f97b
2016-12-22 07:17:30 +09:00
Jim Mathies ff3ad8815a Main patch for Bug 1305453 - Prevent non-esr stand alone installers from installing on XP/Vista. r=rstrong 2016-11-21 12:11:44 -08:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Matt Howell f80a68c7d5 Bug 1247239 - Allow the maintenance service to copy updater.exe only from the installation directory, and verify it first; r=rstrong
MozReview-Commit-ID: 68tbdamvFf0

--HG--
extra : rebase_source : 3523dd7e04ada5246cdc275ce704ede39103d8c8
2016-07-08 10:58:21 -07:00
Ryan VanderMeulen 59d32bcab0 Backed out changeset 0712c02d259e (bug 1247239) because it regressed update staging.
--HG--
extra : rebase_source : ec4834ba5bb4904f4c6037655eb69bff589faac5
2016-04-08 12:13:09 -04:00
Matt Howell b194792316 Bug 1247239 - Remove copying of updater.exe for service updates; r=rstrong
MozReview-Commit-ID: 1Nz2v1d51nk
2016-04-01 15:53:04 -07:00
Matt Howell ea26f3c2e6 Bug 1079858, Deal with deprecation of SHA1 (SHA-1) Authenticode signatures for Windows signing, part 1 with two certs, r=catlee, a=lizzard
--HG--
extra : amend_source : aacafc1ae4b3aadd26705196280ed22a8258711f
2015-12-09 12:42:20 -05:00
Nick Thomas a408867daf Backed out 2 changesets (bug 1079858)
Backed out changeset a8965ae93c5d (bug 1079858)
Backed out changeset ba03ae4ac5df (bug 1079858)
2015-12-09 12:40:58 -05:00
Matt Howell 23f09f2b29 Bug 1079858, Deal with deprecation of SHA1 (SHA-1) Authenticode signatures for Windows signing, part 1, r=catlee, a=lizzard
--HG--
extra : amend_source : 90642316bf1b25d73c8a2b5f4278ec1f9625ed9d
2015-12-08 16:06:26 -05:00
Wes Kocher 39967e9806 Backed out changeset 0ea0832d052d (bug 1079858) for causing bug 1230631 a=backout
--HG--
extra : commitid : GeBy210BpUB
2015-12-04 14:58:55 -08:00
Ben Hearsum 2658b43d3a Bug 1079858: Enable SHA2 signing for windows. r=catlee rs=rstrong
--HG--
extra : amend_source : c605389facd952635d04a60b15bb14a269d073dc
2015-12-02 14:12:37 -05:00
Mike Hommey 0cc838448f Backout changeset 0104f1c911ca (bug 1223530) because it breaks running on Windows XP on a CLOSED TREE
--HG--
rename : toolkit/components/maintenanceservice/Makefile.in => xpcom/windbgdlg/Makefile.in
2015-11-26 08:38:16 +09:00
Ted Mielczarek 879065de9d bug 1223530 - Move MOZ_WINCONSOLE to configure. r=glandium
This patch moves the logic for selecting MOZ_WINCONSOLE out of individual
Makefile.in files and into configure. It also changes config.mk to only
pass -SUBSYSTEM:CONSOLE if MOZ_WINCONSOLE=1. The MSDN docs state that
in the absence of -SUBSYSTEM, the linker will select the proper subsystem
based on whether the program contains [w]main or [w]WinMain, so let it
do that.

One program (windbgdlg) needed a tweak to add a wmain for when MOZ_WINCONSOLE
is defined.

This patch leaves one instance in security/sandbox/win/wow_helper/Makefile.in,
that Makefile has its own separate bug.

--HG--
extra : commitid : 8acDjmfKivj
extra : rebase_source : 03b4fa4c8ae077a894b08f3762ef93541e34ac1a
2015-11-11 06:24:39 -05:00
Ted Mielczarek 8b765abfbe bug 1224308 - Remove some Makefile cruft. r=gps
--HG--
extra : commitid : JdDnpW7zfHf
extra : rebase_source : 9eca8f978c43eb6f26c8d14d5d13fee5ea556a02
2015-11-12 06:39:11 -05:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Robert Strong b7924a4a24 Bug 1177861 - remove remaining unused declarations and cleanup update staging. r=spohl
--HG--
rename : toolkit/components/maintenanceservice/certificatecheck.cpp => toolkit/mozapps/update/common/certificatecheck.cpp
rename : toolkit/components/maintenanceservice/certificatecheck.h => toolkit/mozapps/update/common/certificatecheck.h
rename : toolkit/components/maintenanceservice/registrycertificates.cpp => toolkit/mozapps/update/common/registrycertificates.cpp
rename : toolkit/components/maintenanceservice/registrycertificates.h => toolkit/mozapps/update/common/registrycertificates.h
2015-08-11 14:30:35 -07:00
Robert Strong 7f05087707 Bug 1171518 - cleanup maintenance service logging. r=bbondy 2015-07-14 12:08:45 -07:00
Brian R. Bondy 61e5af9fda Bug 862894 - Handle Maintenance Service control panel version info. r=rstrong, r=jimm 2015-04-24 13:55:11 -04:00
Brian R. Bondy ab9ccba028 Bug 973933 - New updater-xpcshell binary for updater tests. r=rstrong
This is a rollup of recent work. Changes include:
- Creating an xpcshell only updater binary. This binary has an embedded xpcshell only cert for verifying test only mars.  It is only used by tests and is not signed w/ authenticode certs.
- Modifying tests to use that new binary
- Adding a check-cert option to the maintenance service
- Using that new cert-check option in new tests to test the authenticode path
- No longer doing an authenticode check during service updater tests on the xpcshell binary.
- Enables more tests for other platforms

--HG--
rename : toolkit/mozapps/update/updater/moz.build => toolkit/mozapps/update/updater/updater-common.build
2015-04-06 12:03:18 -04:00
Robert Strong 478a8e47e2 Bug 1138282 - Extend telemetry for large number of SERVICE_STILL_APPLYING_ON_FAILURE errors. r=bbondy 2015-04-03 11:19:01 -07:00