Closed
Bug 1506699
Opened 7 years ago
Closed 7 years ago
Fennec UI shuts down too early when dumping captured profile on shutdown
Categories
(Firefox for Android Graveyard :: General, enhancement)
Tracking
(firefox63 wontfix, firefox64 wontfix, firefox65 fixed)
RESOLVED
FIXED
Firefox 65
People
(Reporter: JanH, Assigned: JanH)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
When explicitly quitting, the Android UI normally only waits for sanitizing to finish before shutting down as well, regardless of what Gecko might still be doing.
We already check for MOZ_PROFILER_STARTUP=... [1], so we might as well check for MOZ_PROFILER_SHUTDOWN and integrate jchens patch into our code base
https://gist.github.com/anonymous/158d3cf764f7e07655c23ec5d866db29
That is force the Quit button to be always visible and don't immediately finish the activity when exiting - instead, wait for Gecko to completely exit before quitting the Android UI, too.
[1] https://dxr.mozilla.org/mozilla-central/rev/237e4c0633fda8e227b2ab3ab57e417c980a2811/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java#930
Assignee | ||
Comment 1•7 years ago
|
||
We're already have some special handling in the Android UI when detecting
MOZ_PROFILER_STARTUP, so we might as well handle MOZ_PROFILER_SHUTDOWN, too.
This means two things:
1. In order to actually quit the app, the "Quit" button needs to be enabled.
2. We need to wait until we're sure that the profile has been dumped to disk
before finishing the activity (and thereby possibly killing our process).
Pushed by mozilla@buttercookie.de:
https://hg.mozilla.org/integration/autoland/rev/8711ee626573
Make dumping a profile to disk easier when using MOZ_PROFILER_SHUTDOWN. r=snorp
Comment 3•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
Comment 4•7 years ago
|
||
Thanks for the fix, Jan. I'm marking 64=wontfix because we don't need to uplift this fix to Fennec 64 Beta. Developers usually profile Nightly builds, not Beta builds.
Assignee | ||
Comment 5•7 years ago
|
||
True enough, although this could also be helpful if we ever got a repeat performance of something like the Safebrowsing hangs we've had, where the true cause remained a mystery for quite some time. But there's no pressing need right now, so it's fine.
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•