Assert that we do not skip ShutdownPhase::XPCOMShutdown due to a missing service manager
Categories
(Core :: XPCOM, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox103 | --- | fixed |
People
(Reporter: jstutte, Assigned: archdevx7d6)
References
Details
(Keywords: good-first-bug)
Attachments
(2 files, 2 obsolete files)
24.90 KB,
patch
|
Details | Diff | Splinter Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
We advance to ShutdownPhase::XPCOMShutdown
only if we find the service manager.
The current code looks as if we would treat the error, but we actually do not expect this to be ever missing at this stage of shutdown and just skipping it would be bad. Thus we want to add a MOZ_DIAGNOSTIC_ASSERT
here to see if our assumptions hold.
Assignee | ||
Comment 2•2 years ago
|
||
I tried to fix the bug. I am new to Mozilla community so I would like to ask for some guidance.
Reporter | ||
Comment 3•2 years ago
|
||
Hi! Great that you want to help!
However, you should submit a patch, not just a modified source file. Please use moz-phab to submit the patch, such that we can do the review inside phabricator which eases life for all of us.
Please be sure to have read Firefox Contributors’ Quick Reference and possibly Sending your code for review (also known as “sending patches”). It can feel kind of overwhelming at the beginning, but it definitely pays off once you are through it.
Thanks for your support!
Assignee | ||
Comment 4•2 years ago
|
||
I'm sorry, you're right. I will send a patch file in a moment
Assignee | ||
Comment 5•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 6•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 7•2 years ago
|
||
Updated•2 years ago
|
Reporter | ||
Comment 8•2 years ago
|
||
Hi, sorry for the hassle! I just realized that you seem to use git, not mercurial. Honestly I do not know how to configure that to work correctly with moz-phab - I am sure there is a way, though. I'll ask around.
Reporter | ||
Comment 9•2 years ago
|
||
Reporter | ||
Comment 10•2 years ago
|
||
that will set the metadata and then it's necessary to amend the commit like git commit --amend --reset-author
Comment 11•2 years ago
|
||
Pushed by jstutte@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1b8326b00bed Replace if statement checking if service manager is present with MOZ_DIAGNOSTIC_ASSERT. r=xpcom-reviewers,jstutte
Comment 12•2 years ago
|
||
bugherder |
Description
•