.startup-incomplete created at TB start and not removed
Categories
(Thunderbird :: General, defect)
Tracking
(thunderbird_esr102+ affected, thunderbird106 affected)
People
(Reporter: rachel, Assigned: aceman)
Details
Attachments
(1 file)
3.99 KB,
patch
|
mkmelin
:
review+
aceman
:
feedback+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
Steps to reproduce:
Delete all .startup-incomplete from your file system. Start TB.
.startup-incomplete created. This should be deleted after successful startup:
https://searchfox.org/mozilla-central/rev/570f6e5c06b6c8140f53bf104d785a18165212ab/toolkit/components/extensions/test/mochitest/test_startup_canary.html#32
// The ".startup-incomplete" file is created at the startup, and supposedly
// cleared "soon" after startup (when the application knows that the startup
// succeeded without crash). Bug 1624724 and bug 1728461 show that this has
// not always been the case, so this regression test verifies that the file
// is actually non-existent when this test start, see
// https://bugzilla.mozilla.org/show_bug.cgi?id=1728461#c12
Apparently related to checking for crashes according to the comments here:
https://searchfox.org/mozilla-central/rev/570f6e5c06b6c8140f53bf104d785a18165212ab/toolkit/xre/nsAppRunner.cpp#4644
Reporter | ||
Comment 1•3 years ago
|
||
Alice, when you have a moment: Has this always been that way? Could you please check.
Reporter | ||
Comment 2•3 years ago
|
||
Looks like code equivalent to
https://searchfox.org/mozilla-central/search?q=TrackStartupCrashEnd&path=BrowserGlue.jsm&case=false®exp=false
is missing in TB. Alice, sorry about the noise.
Reporter | ||
Comment 3•3 years ago
|
||
Updated•3 years ago
|
OK, on Linux it is in the ~/.cache folder, not in the profile. It is removed after TB close, but not soon after startup.
On Windows, the file is created in the profile folder and not removed at all. Patch based on:
https://searchfox.org/mozilla-central/rev/cdbf03e2dfa293023d477af83e124558437dcb43/browser/components/BrowserGlue.jsm#1994-1996
https://searchfox.org/mozilla-central/rev/cdbf03e2dfa293023d477af83e124558437dcb43/browser/components/BrowserGlue.jsm#2681-2691
This works for me and removes the file after 30 seconds.
I had to update the patch as it seems MailGlue.jsm file has changed since the patch and it also referenced Betterbird specific code, thus the patch didn't apply.
Comment 8•2 years ago
|
||
Updated•2 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/578348d9bc99
Add missing call to Services.startup.trackStartupCrashEnd(). r=mkmelin
Assignee | ||
Comment 10•2 years ago
|
||
Ok, thanks.
Description
•