On updates, load a page with what's new
Categories
(Thunderbird :: General, enhancement)
Tracking
(thunderbird_esr68 fixed, thunderbird69 fixed)
People
(Reporter: wsmwk, Assigned: darktrojan)
Details
Attachments
(2 files)
|
1.62 KB,
patch
|
mkmelin
:
review+
jorgk-bmo
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
|
1.02 KB,
patch
|
mkmelin
:
review+
jorgk-bmo
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
Mentioned in bug 1134760, there is an interest to have updates load "What's New", presumably in a tab
Comment 1•6 years ago
|
||
Actually, I'd like to just open the page in the browser. That way people can really explore the thing, there is not the complaints that people can't find their mail tab (IIRC we had bugs for this back when we had what's new in a tab), and - it's an ample opportunity for people to surf on in to the donate page. They can't do that inside Thunderbird.
| Reporter | ||
Comment 2•6 years ago
|
||
Yes, thanks for correcting that. I wasn't ignoring you - sometimes I just cannot read :)
| Reporter | ||
Comment 3•6 years ago
|
||
Would be nice to do for 68
| Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
| Assignee | ||
Comment 4•6 years ago
|
||
I have a feeling this would be happening if it weren't for this error:
Unable to find update: TypeError: um.getUpdateAt(...) is null specialTabs.js:885
showWhatsNewPage chrome://messenger/content/specialTabs.js:885
openSpecialTabsOnStartup chrome://messenger/content/specialTabs.js:652
OnLoadMessenger chrome://messenger/content/msgMail3PaneWindow.js:522
onload chrome://messenger/content/messenger.xul:1
Calling specialTabs.showWhatsNewPage() manually (i.e. not immediately after start-up) works fine, and the what's new page redirects to the release notes. This is the URL that loads (or would if it weren't broken) after updating from 60.0b9 to 67.0b3:
https://www.thunderbird.net/en-US/thunderbird/67.0beta/releasenotes/?uri=/thunderbird/whatsnew/&locale=en-GB&version=67.0&channel=beta&os=Linux&buildid=20190507203408
| Assignee | ||
Comment 5•6 years ago
|
||
Our update code is out-of-date compared to Firefox's. This fixes that.
There may be more missing pieces, but if I disable these two checks (which would be true if there's a real update), and put a fake active-update.xml in the build directory a "Welcome to Daily" page opens at start-up.
| Assignee | ||
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
That code is notoriously difficult to test but I did add a test for it recently.
https://searchfox.org/mozilla-central/source/browser/components/tests/browser/whats_new_page
I'm not sure how it would best fit in with your available test harnesses but if you have any questions feel free to ask.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 8•6 years ago
|
||
| Assignee | ||
Comment 9•6 years ago
|
||
You can trick the code into thinking an update has happened. Copy this file in objdir/dist/bin/updates.xml, set app.update.postupdate to true and mailnews.start_page_override.mstone to something less than it is, and restart.
I don't think this patch is even necessary, as doing the above works even without it. But we might as well keep up with Firefox on this.
I've been trying to get Robert's automated test going but I think it will require some changes to how we run mochitest first.
| Assignee | ||
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Updated•6 years ago
|
Comment 13•6 years ago
|
||
Ryan: as an idea, I wonder if we could find someone in the community who would like to take on implementing (and/or maintaining) a what's new for nightly. Bugzilla has a pretty nice API so the bugs landed for daily could be listed automatically for such a page, if we'd want to.
| Assignee | ||
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
Yeah I tested earlier. It just decided to send the old bugzilla saved comment again.
| Assignee | ||
Updated•6 years ago
|
Comment 16•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/94f38909bfab
Copy Firefox code for getting the active update. r=mkmelin
https://hg.mozilla.org/comm-central/rev/840547c2b320
Open "what's new" page in browser instead of a tab. r=mkmelin
Updated•6 years ago
|
| Assignee | ||
Comment 17•6 years ago
|
||
| Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 18•6 years ago
|
||
TB 68.0 ESR:
https://hg.mozilla.org/releases/comm-esr68/rev/a0053aaa30eebeee71d09a4542878e35dec3341d
https://hg.mozilla.org/releases/comm-esr68/rev/4d3376af9cdffc2d05bb3cdb69be423e0057ce91
Description
•