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)

All
Android
enhancement
Not set
normal

Tracking

(firefox63 wontfix, firefox64 wontfix, firefox65 fixed)

RESOLVED FIXED
Firefox 65
Tracking Status
firefox63 --- wontfix
firefox64 --- wontfix
firefox65 --- fixed

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
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
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
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.
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.
Blocks: 1444900
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: