Commit Graph

849 Commits

Author SHA1 Message Date
Gabriele Svelto
1732fd5c52 Bug 1682511 - Add the WER module to the installer and record its path in the Windows registry r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D107637
2021-04-07 07:55:23 +00:00
Adam Gashlin
185e32f6c3 Bug 1696772 - Don't use FILE_FLAG_DELETE_ON_CLOSE for multi-instance locks. r=nalexander,application-update-reviewers.
FILE_FLAG_DELETE_ON_CLOSE had the wrong semantics, rendering the lock
file unusable after it had been closed once.

Delete the lock file in the uninstaller as a simple alternative (given that
the lock file is not in a temporary location on Windows).

For a test I returned to the older form of
test_backgroundtask_update_sync_manager which initially exposed the issue:
It expects the background task to be able to detect the xpcshell instance
after running resetLock, which failed before this fix.
I also extended the original updateSyncManager test to run the second
copy twice, which also catches the issue.

Differential Revision: https://phabricator.services.mozilla.com/D109565
2021-03-24 20:36:06 +00:00
Nick Alexander
bbb2425ab0 Bug 1691951 - Make Windows install not register "ftp" protocol handler. r=application-update-reviewers,bytesized
For all channels, this commit:

1. stops registering the ftp protocol handler at install time;
2. actively unregisters the ftp protocol handler at postupdate time;
3. stops unregistering the ftp protocol handler at uninstall time.

The rationale for 3) is that by the time a `helper.exe` with this
change is in place, the `postupdate` step has already run and
unregistered the ftp protocol handler.

Differential Revision: https://phabricator.services.mozilla.com/D104735
2021-02-22 17:52:24 +00:00
Mitchell Hentges
5e75f3fda3 Bug 1687980: Make Windows quickstart docs more concise r=mhoye,sylvestre,andi
* Puts the docs in order, so that contributors aren't jumping to the
  middle of the page to install system tools, then back to the top to
  clone Firefox.
* Removes docs on MacPorts since it's being removed in bug 1688263.
* Removes step to manually install brew packages since that happens
   automatically in bootstrap now.
* Simplifies mercurial installation docs
* Removes unnecessary mozconfig-tweaking instructions
* Removes almost-always-unnecessary DEFINE and troubleshooting
  information.

Differential Revision: https://phabricator.services.mozilla.com/D102974
2021-02-16 17:48:11 +00:00
Adam Gashlin
e17468df34 Bug 1660198 - Part 3: Document installation_telemetry.json. r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D103243
2021-01-30 00:06:28 +00:00
Adam Gashlin
a62e3969bd Bug 1660198 - Part 1: Write installation telemetry. r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D103241
2021-01-28 18:28:20 +00:00
Adam Gashlin
4850365fd4 Bug 1681574: Remove the old update agent skeleton. r=nalexander
I'm keeping the --enable-update-agent config option and the corresponding
MOZ_UPDATE_AGENT config flag and define, as these should still be useful.

As we never shipped this there is no need to keep anything around to
clean up the scheduled tasks.

Differential Revision: https://phabricator.services.mozilla.com/D99574
2020-12-15 19:00:25 +00:00
Adam Gashlin
a1012d5f88 Bug 1681207: Remove unwanted WDBA shortcut on post update and uninstall. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D99303
2020-12-10 04:28:36 +00:00
Masatoshi Kimura
4a6722ac62 Bug 1652412 - Do not set as deault .pdf, .svg, ftp:, and mailto: handlers on Windows 7. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D98580
2020-12-03 23:05:01 +00:00
Nick Alexander
7de8e3e4f2 Bug 1639613 - Pre: Fix potential typo: lastUsed -> lastused. r=mhowell
It's not 100% clear that this has any effect -- it might be that the
string is case insensitive -- but in any case let's keep our source
code uniform.

Differential Revision: https://phabricator.services.mozilla.com/D94774
2020-10-26 20:45:30 +00:00
Ricky Stewart
31b8ca9716 Bug 1654103: Standardize on Black for Python code in mozilla-central.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara
612312a64c Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart
065d2eb893 Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca
95b44c982f Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart
43baed3c18 Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Adam Gashlin
49cee2d08a Bug 1461690 Part 4: Submit ping in uninstaller. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D93718
2020-10-20 23:24:08 +00:00
Adam Gashlin
014ce61b53 Bug 1667726 - Clean up custom controls when leaving Welcome page. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D93706
2020-10-16 15:44:19 +00:00
Ricky Stewart
edd6e99172 Bug 1670357 - Remove make targets for cleaning: clean, realclean, clobber, distclean, clobber_all, everything r=firefox-build-system-reviewers,mhentges
The `clobber` targets are superseded by `mach clobber`, so we don't need them for any reason. The `clean` target is meant to get you to a post-`configure` state, but it doesn't really work, and if it's necessary for you to be in that state for some reason you can just clobber and re-`configure`, so it doesn't seem worth it to get it working again. Instead, delete all of them. Also delete `everything` which is not useful when `clobber` doesn't exist.

Differential Revision: https://phabricator.services.mozilla.com/D93514
2020-10-15 20:37:18 +00:00
Sylvestre Ledru
40667cf727 Bug 1588458 - Replace dxr links by searchfox in the code/test r=kats,sparky
Differential Revision: https://phabricator.services.mozilla.com/D92792
2020-10-08 14:02:40 +00:00
Molly Howell
bdff2fbcb5 Bug 1665195 - Also delete the UpdateLogs directory from the Firefox uninstaller. r=agashlin
Differential Revision: https://phabricator.services.mozilla.com/D90317
2020-09-15 23:41:50 +00:00
Michael Kaply
c6a6306c76 Bug 1656556 - Switch to device context as default for Firefox MSI. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D89186
2020-09-02 18:58:49 +00:00
Kirk Steuber
17e54a282f Bug 1658711 - Ensure that the PostUpdate task is called reliably r=mhowell
The PostUpdate task must always be called as the unelevated user, even if we didn't use the service, in order to ensure that we register the WDBA. Additionally, the PostUpdate task should always be run synchronously so that the elevated and unelevated PostUpdate tasks are guaranteed to run in order. This is important since the elevated PostUpdate unregisters the task and the unelevated PostUpdate re-registers it.

Differential Revision: https://phabricator.services.mozilla.com/D87509
2020-08-18 22:40:28 +00:00
Molly Howell
6e3464a234 Bug 1654913 - Remove Maintenance Service UpdateLogs directory during uninstall. r=agashlin
Since bug 1510494, when the maintenance service is used, we create update log
and status files inside the service directory and then move them into the
regular update directory when finished. However, the directory those temp
files are stored in did not get added to the uninstallers, so it doesn't
get removed as it should.

This patch has two parts. First, the Firefox uninstaller now removes any log
files created for the installation it's uninstalling (there is only one
directory and the files for different installation are differentiated by name).
Second, the maintenace service uninstaller, when it gets run by the uninstaller
for the last copy of Firefox on the system, removes the UpdateLogs directory
itself, provided it is empty, which is should be at that point since all
installations have been removed and have cleaned up their own files.

Differential Revision: https://phabricator.services.mozilla.com/D85074
2020-07-29 23:35:48 +00:00
Sarah Bird
5d8f940850 Bug 1647501 - Rename "test slave" -> "test machine", r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81908
2020-07-02 01:06:01 +00:00
Adam Gashlin
1677b958e6 Bug 1598111 - Document install pings more completely. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D80307
2020-06-25 00:53:33 +00:00
Adam Gashlin
663501ddb9 Bug 1633505 - Show refresh button within the uninstaller. r=mhowell
Detect a profile for the installation, if found offer refresh on welcome page:
- Replace text
- Add help link and button

Add a different prompt to close the browser for refresh.

When leaving the welcome page:
- via help link, launch a URL
- via Refresh button, launch Firefox with the necessary args

Add utility functions to launch the link and Firefox.

Remove the UN_CONFIRM_CLICK label and hide the subheading, this was an
addition to the design. Move down UN_CONFIRM_PAGE_TITLE to fill in the space.

Move the check for the install-specific profile to common.nsh from stub.nsi,
wrapped in stack ops to save regs and with _MOZFUNC_UN for uninstaller compat.

Move InitHashAppModelId to just after un.UninstallUnOnInitCommon (which sets
$INSTDIR correctly), so AUMID would be available in un.PreWelcome. I don't
think there's anything else that would change $INSTDIR in the uninstaller
so this should be ok.

Unrelated but adjacent cleanup: Remove inappropriate use of _MOZFUNC_UN
in CopyPostSigningData.

Differential Revision: https://phabricator.services.mozilla.com/D76435
2020-05-26 21:47:58 +00:00
Molly Howell
907c514555 Bug 1638509 - Enable the limited PostUpdate to update the WDBA task. r=agashlin,bytesized
This also requires removing the registry value cleanup from the unregister-task
command and adding a new uninstall command which removes both the task and the
registry values, because this patch now runs unregister-task during updates to
remove the task before re-adding it, and that needs to leave the registry alone.

Differential Revision: https://phabricator.services.mozilla.com/D76354
2020-05-26 15:38:21 +00:00
Nick Alexander
fa5ee0a1f0 Bug 1629636 - Make Windows install not register "ftp" protocol handler for NIGHTLY_BUILD. r=mhowell
For builds with ftp disabled (see below), this commit:

1) stops registering the ftp protocol handler at install time;
2) actively unregisters the ftp protocol handler at postupdate time;
3) stops unregistering the ftp protocol handler at uninstall time.

The rationale for 3) is that by the time a `helper.exe` with this
change is in place, the postupdate step has already run and
unregistered the ftp protocol handler.  This could, of course, fail,
and a fallback would be nice.  However having a guarded block, just
like everywhere else, will make it much more likely that the complete
removal of the ftp protocol will also cull the uninstall code.  I
prefer making the latter cleanup more likely to be complete.

The bool pref that disables ftp functionality is
"network.ftp.enabled", and at this time that defaults to
!NIGHTLY_BUILD.  In the {un}install process, there's no way to inspect
that pref dynamically, so we use !NIGHTLY_BUILD as well.

This opens a race window for developers to change the pref default
without changing the {un}install conditional at the same time.  It
would be possible to close that window by introducing a new configure
subst but given the imminent removal of the ftp protocol entirely it
doesn't seem necessary.

Differential Revision: https://phabricator.services.mozilla.com/D74503
2020-05-20 22:49:44 +00:00
Nick Alexander
6e0903c2fb Bug 1506416 - Enable setting Firefox as default PDF reader on Windows. r=mhowell
Comparing to .webp, we already do two of three things needed.  This
arranges the last thing: registering the file association.

Differential Revision: https://phabricator.services.mozilla.com/D76244
2020-05-20 22:45:15 +00:00
Molly Howell
28b2cfbf46 Bug 1636445 - Skip applying profile refresh button styles in high-contrast. r=agashlin
Differential Revision: https://phabricator.services.mozilla.com/D74417
2020-05-08 19:07:53 +00:00
Ricky Stewart
39d64f4cdc Bug 1599658 - Delete previous definition of py_action in Makefiles. Now py_action calls into Python 3 and py3_action doesn't exist. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D72487
2020-05-05 20:04:30 +00:00
Ricky Stewart
2cd0f76726 Bug 1633016 - Remove a bunch of references to PYTHON(2) in Makefiles r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D72479
2020-05-05 19:53:22 +00:00
Bogdan Tara
c405bd1997 Backed out 6 changesets (bug 1632916, bug 1599658, bug 1633037, bug 1633039, bug 1633016, bug 1632920) for SA bustages CLOSED TREE
Backed out changeset 332ce0963b4e (bug 1633039)
Backed out changeset a9904cbc40d9 (bug 1633037)
Backed out changeset d06b0ec349f8 (bug 1599658)
Backed out changeset 8fd300cad80f (bug 1633016)
Backed out changeset f8820941c703 (bug 1632916)
Backed out changeset ac9c2c8746ed (bug 1632920)
2020-05-02 01:49:29 +03:00
Ricky Stewart
31ea0a2cfd Bug 1599658 - Delete previous definition of py_action in Makefiles. Now py_action calls into Python 3 and py3_action doesn't exist. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D72487
2020-04-30 15:27:13 +00:00
Ricky Stewart
4655bd9d42 Bug 1633016 - Remove a bunch of references to PYTHON(2) in Makefiles r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D72479
2020-04-30 15:25:22 +00:00
Adam Gashlin
0fe3d16d1f Bug 1316136 - Support post-signing/attribution data in full installer. r=mhowell
This reuses some logic from the stub installer, moved into common.nsh.

Differential Revision: https://phabricator.services.mozilla.com/D72078
2020-04-23 21:16:20 +00:00
Adam Gashlin
c3eec93e0b Bug 1633438 - Remove download size checks, use file size as fallback for telemetry. r=mhowell
The retry on download complete did not work properly, and we trust
the size of the file given that we download over https and check
with CertCheck, so I removed the other size checks which would have
retried infinitely given issues.

Differential Revision: https://phabricator.services.mozilla.com/D72746
2020-04-27 20:10:13 +00:00
Adam Gashlin
9918bb7c87 Bug 1632981 - Hide focus rectangle on installing label. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D72460
2020-04-24 20:57:35 +00:00
Adam Gashlin
49ae8f9ac8 Bug 1617957 - Update installer text in official branding. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D72211
2020-04-23 21:26:37 +00:00
Adam Gashlin
de3511820d Bug 1632452 - Label the bg image as presentation only. r=mhowell
In particular this stops NVDA from reading out the full path of the background image on every
mouseover.

Differential Revision: https://phabricator.services.mozilla.com/D72210
2020-04-23 21:06:41 +00:00
Adam Gashlin
f2969311b8 Bug 1632499 - Disallow dragging of background image. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D72191
2020-04-23 19:17:58 +00:00
Adam Gashlin
64a7fd06b9 Bug 1632315 - Fix extra undefined in blurbStrings array. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D72086
2020-04-23 14:38:43 +00:00
Molly Howell
4963dc7f76 Bug 1596812 Part 7 - Add documentation for the stub installer web UI. r=agashlin,nalexander
Depends on D56582

Differential Revision: https://phabricator.services.mozilla.com/D56583
2020-04-20 03:06:08 +00:00
Molly Howell
fb2e5162dc Bug 1596812 Part 6 - Replace the stub installer UI code with calls to the web plugin. r=agashlin
Depends on D56581

Differential Revision: https://phabricator.services.mozilla.com/D56582
2020-04-20 03:06:08 +00:00
Molly Howell
bbd42062c6 Bug 1596812 Part 5 - Add the web content files and include them in the installer build. r=agashlin,nalexander,mconley
Depends on D56580

Differential Revision: https://phabricator.services.mozilla.com/D56581
2020-04-20 03:06:08 +00:00
Molly Howell
04c44a7fd5 Bug 1628924 - Wait for the default browser agent to finish unregistering before deleting it. r=agashlin
Differential Revision: https://phabricator.services.mozilla.com/D70570
2020-04-10 22:18:50 +00:00
Molly Howell
599b1e15ca Bug 1626887 - Fallback for when registering the default browser agent task fails in the MSI. r=agashlin
Differential Revision: https://phabricator.services.mozilla.com/D69413
2020-04-09 17:40:08 +00:00
Molly Howell
57baf00c3b Bug 1619122 - List more supported file types in our Applications registry key. r=agashlin
Differential Revision: https://phabricator.services.mozilla.com/D68062
2020-04-04 03:35:09 +00:00
Molly Howell
c3d5d57d92 Bug 1624388 - Properly expose default browser agent build flag to installer. r=bytesized,agashlin
Also fix two other installer problems that were getting missed because of this:
one build error in PostUpdate and one use of an uninitialized value in the
installer, causing it to record that it had not registered the task when it had.

Differential Revision: https://phabricator.services.mozilla.com/D67915
2020-03-23 20:21:36 +00:00
jayati
583829f03c Bug 1466357 - Use RefreshShellIcons instead of manually reimplementing it for Windows installer. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D67379
2020-03-18 20:33:19 +00:00