Closed Bug 1679440 Opened 5 years ago Closed 5 years ago

Add test ensuring crash reporter works for background tasks

Categories

(Toolkit :: Background Tasks, task)

task

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: nalexander, Assigned: nalexander)

References

Details

Attachments

(1 file)

This is essentially the "background tasks in Gecko" expression of Bug 1656003. That ticket started a discussion of how to collect crash reports from background tasks that are not part of Gecko/Firefox. To service updates in the background, we're not pursuing that approach; we're going to leverage the existing update service within Gecko. This ticket tracks ensuring that the existing crash reporter works with this new background task mode.

This adds a test to ensure that crash reporting works inside of
application --backgroundtask ... invocations. A test-only crash
task is added that uses CrashTestUtils.jsm to trigger a crash. The
xpcshell harness invokes that background task and processes any
minidump and extras just as it does for existing xpcshell
subprocesses.

The test is homed in toolkit/crashreporter, rather than in
toolkit/components/backgroundtasks, because there is special
handling for CrashTestUtils.jsm and the testcrasher library. It's
probably possible to make that infrastructure usable from multiple
locations but it seems low value.

Depends on D98095

Assignee: nobody → nalexander
Status: NEW → ASSIGNED
Blocks: 1682069
No longer blocks: 1682069
Pushed by nalexander@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/310d2116faf7 Add test ensuring crash reporter works for background tasks. r=mossop,gsvelto
Backout by ncsoregi@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/06ee1ff0214b Backed out 8 changesets (bug 1679440, bug 1682069, bug 1667276) for causing failures on browser_all_files_referenced.js. CLOSED TREE
Pushed by nalexander@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4d325f68ea24 Add test ensuring crash reporter works for background tasks. r=mossop,gsvelto
Pushed by nalexander@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/073d44e79773 Add test ensuring crash reporter works for background tasks. r=mossop,gsvelto
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
Blocks: 1697875
Component: Application Update → Background Tasks
See Also: → 1884125
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: