Port bug 1555088 - Use activeUpdate and an app version increase to determine that an update was performed and remove the post update pref
Categories
(Thunderbird :: Upstream Synchronization, task)
Tracking
(thunderbird_esr78+ fixed, thunderbird81 fixed)
People
(Reporter: robert.strong.bugs, Assigned: mkmelin)
References
Details
Attachments
(2 files, 2 obsolete files)
2.10 KB,
patch
|
mkmelin
:
review+
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr78+
|
Details | Diff | Splinter Review |
10.65 KB,
patch
|
Details | Diff | Splinter Review |
Spinoff of bug 1555088 for Thunderbird
The app.update.postupdate preference will be removed in bug 1555088 to remove a file read during startup.
The following patch in phab has the changes needed for Thunderbird
https://phabricator.services.mozilla.com/D36853
Reporter | ||
Comment 1•5 years ago
|
||
Since Thunderbird isn't using the update xml to specify the url to open or anything else you might consider just doing this on version change and not bother with the update at all.
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Perhaps we can get Richard interested.
Comment 3•5 years ago
|
||
I looked at it and don't know where to put the changes and what changes we need. This is for someone that knows how this all works, sorry.
Comment 4•5 years ago
|
||
Now that bug 1555088 landed someone should look at this bug.
Assignee | ||
Comment 5•4 years ago
|
||
I noticed this during testing. We need to fix this now. Due to this bug we aren't showing the what'snew page to up-graders.
Assignee | ||
Comment 6•4 years ago
|
||
This is grabbing some Firefox code. It's in the wrong file nowadays, bug we can move that later after bug 1662665.
Not sure how to easily test this. Can the update.xml be faked somehow?
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 7•4 years ago
|
||
:rjl, is the showURL property set in our update.xml files? And do you have some sample urls?
Comment 8•4 years ago
|
||
ISTR from last time I was looking at this stuff (a long time ago, admittedly) that our updates don't/can't have any of the properties this code uses. Not that that would stop it from working.
Comment 9•4 years ago
|
||
We don't have a showURL property in our updates.
I can make Balrog send it easily enough, but I have similar recollection as Geoff. Last time I tried to set something up I could not get it to work because the update code in Thunderbird was missing some functionality.
I can try to set something up on a test channel so we can see what it does.
As for the URL, it's pretty much whatever. I just stick it in a YAML file. See the one for Firefox at browser/config/whats_new_page.yml.
https://www.mozilla.org/%LOCALE%/{product}/{version}/whatsnew/?oldversion=%OLD_VERSION%
product and version are filled in by Taskcluster at release promotion time and %LOCALE% %OLD_VERSION% by Balrog.
Assignee | ||
Comment 10•4 years ago
|
||
I think we don't need to get the url from the update (the openURL property). We have a URL to use.
But I want to know if action="silent" is there for upgrades between point releases. If it's not, then with the patch a what's new would be shown for them too which is... perhaps a bit much ;)
If we want to have the what's new showing then action="showURL" should be used.
Comment 11•4 years ago
|
||
The whats-new-page setup handles all that. Well except for action="silent". Does that even exist? I don't think it's needed though.
We would add to the existing file in comm/mail/config/whats_new_page.yml something like:
- type: show-url
url: <whatever url -- if its localized, then great can handle that too>
conditions:
blob-types: [wnp]
release-types: [release]
products: [thunderbird]
update-channel: [release]
versions: ["<{version.major_number}.0"]
The versions line sets up the condition you're looking for. Taskcluster will expand that to ["<78.0"] and then on Balrog the release blob will contain:
"updateLine": [
{
"for": {},
"fields": {
"detailsURL": "https://live.thunderbird.net/thunderbird/releasenotes?locale=%LOCALE%&version=78.2.2&channel=release",
"type": "minor"
}
},
{
"for": {
"locales": [<list of locales>],
"versions": ["<78.0"]
},
"fields": {
"actions": "showURL",
"openURL": "<the whats new url>"
}
}
],
When updating from 68 the update line would be:
<update actions="showURL" appVersion="78.2.2" buildID="20200902163820" detailsURL="https://live.thunderbird.net/thunderbird/releasenotes?locale=en-US&version=78.2.2&channel=release" displayVersion="78.2.2" openURL="<the whats new url>" type="minor">
And when updating from easier 78:
<update appVersion="72.2.2" buildID="20200902163820" detailsURL="https://live.thunderbird.net/thunderbird/releasenotes?locale=en-US&version=78.2.2&channel=release" displayVersion="78.2.2" type="minor">
Comment 12•4 years ago
|
||
Comment 13•4 years ago
|
||
Assignee | ||
Comment 14•4 years ago
|
||
Seems firefox does set it (their corresponding pref) on nightly - https://searchfox.org/comm-central/search?q=%22startup.homepage_override_url%22&path=
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 15•4 years ago
|
||
Comment 16•4 years ago
|
||
Comment 17•4 years ago
|
||
Comment on attachment 9173883 [details] [diff] [review]
bug1563411_whatsnew_config.patch
[Approval Request Comment]
The patches on this bug will bring our updater closer to Firefox's. The important part here is the "whats new page" feature which has been on Firefox for some time, but Thunderbird has not supported. As Magnus points out there is nothing shown on upgrade from 68->78 due to the toolkit changes that triggered this bug. From a donation perspective that's important.
Comment 18•4 years ago
|
||
Comment on attachment 9173883 [details] [diff] [review]
bug1563411_whatsnew_config.patch
[Triage Comment]
Approved for beta.
Conditionally approved for esr. (assuming testing goes well - tagging Walt, but we will try to have several people test)
Comment 19•4 years ago
|
||
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/8828fc048e0d
Port bug 1555088 - Use activeUpdate and an app version increase to determine that an update was performed and remove the post update pref. r=rjl
https://hg.mozilla.org/comm-central/rev/ae581bdbf75b
Configure a whats-new-page for Thunderbird to display release notes on major updates. r=mkmelin
Updated•4 years ago
|
Comment 20•4 years ago
|
||
This is what actually landed - without the search pref line removed since it is unrelated to this bug.
Comment 21•4 years ago
|
||
Comment 22•4 years ago
|
||
bugherder uplift |
Assignee | ||
Comment 23•4 years ago
|
||
(In reply to Rob Lemley [:rjl] from comment #16)
-pref("browser.search.param.ms-pc", "MOZT");
Is this intentional?
It was. That is some old junk no not used for anything anymore. Oh well, we can remove it some other time.
Comment 24•4 years ago
|
||
When testing, I noticed that this page opens in a web browser, while the updated privacy policy opens in a tab within Thunderbird. Can the whats new page be opened in a Thunderbird tab as well? It would be more consistent.
Assignee | ||
Comment 25•4 years ago
|
||
It's very intentional. From the internal web page people can't really explore the other Thunderbird pages, i.e. can't "get involved", and "can't" really donate. The privacy tab could perhaps also be opened in the browser, but then it's not as clear that it's for Thunderbird.
Comment 26•4 years ago
|
||
bugherder uplift |
Comment 27•4 years ago
|
||
Just tested the update to 78.2.2 from 68.12.0 on Ubuntu 18.04 following the instructions provided in an email.
The 78.0 release notes opened in Firefox.
Description
•