Disable auto-update for Thunderbird
Categories
(Testing :: mozregression, defect)
Tracking
(Not tracked)
People
(Reporter: kevin, Unassigned)
References
Details
Attachments
(2 files)
1.42 KB,
patch
|
Details | Diff | Splinter Review | |
50 bytes,
text/x-github-pull-request
|
Details | Review |
When mozregression (git main 08ef1c6) launches a version of Thunderbird which is not the most recent, the "A new Daily update is available" update prompt is shown, unlike Firefox where the prompt is disabled. Steps to reproduce:
- Run
mozregression --app thunderbird --launch 2022-08-06
- Begin working through the new account wizard.
- Observe the "A new Daily update is available" prompt appear after a minute or so.
Although mozregression sets app.update.auto:false
and app.update.enabled:false
, these have no effect on recent versions of Thunderbird due to their removal in Bug 1420514 (ported to TB in Bug 1479289). Additionally, the replacement mechanism of setting policies.DisableAppUpdate:true
in distribution/policies.json
is only implemented for Firefox, not Thunderbird.
The attached patch calls _disableUpdateByPolicy()
from ThunderbirdLauncher._install()
, as done by FirefoxLauncher._install
. I've tested the patch by launching Thunderbird using a patched mozregression and confirming that Help->About Daily shows "Updates disabled by your system administrator" and no update prompts are observed.
Comment 1•2 years ago
|
||
(In reply to Kevin Locke from comment #0)
Additionally, the replacement mechanism of setting
policies.DisableAppUpdate:true
indistribution/policies.json
is only implemented for Firefox, not Thunderbird.
Not sure what you're referring to, but disabling by policy is enabled in Thunderbird as well. The policies.json should be like
{
"policies": {
"DisableAppUpdate": true
}
}
Reporter | ||
Comment 2•2 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #1)
(In reply to Kevin Locke from comment #0)
Additionally, the replacement mechanism of setting
policies.DisableAppUpdate:true
indistribution/policies.json
is only implemented for Firefox, not Thunderbird.Not sure what you're referring to, but disabling by policy is enabled in Thunderbird as well. The policies.json should be like
My apologies for being unclear. I was referring to support for creating distribution/policies.json
when mozregression invokes Thunderbird. Are you sure mozregression currently creates policies.json
as in your example when invoking Thunderbird?
Comment 3•2 years ago
•
|
||
@Kevin Locke -- can you please submit a pull request via GitHub? This will ensure tests and CI are triggered.
:mkmelin -- although ThunderbirdLauncher
extends MozRunnerLauncher
, thus inheriting _disableUpdateByPolicy
, it does not actually call it anywhere.
Comment 4•2 years ago
|
||
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Description
•