about:processes tests kill processes without calling NoteIntentionalCrash
Categories
(Core :: DOM: Content Processes, defect, P2)
Tracking
()
People
(Reporter: mccr8, Assigned: mccr8)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-esr91+
|
Details | Review |
Bug 1635494 added some tests of the about:processes feature that kills a child process. Unfortunately, this is done without calling NoteIntentionalCrash() in the child process, so the leak checker produces an error because it can't find a leak log for that process (bug 1560096). For some reason, this leak checker failure doesn't make the job fail, so we get intermittent reports of this when some other test in the same job fails.
I assume that the way that about:processes kills a process happens from the parent process, which will make it trickier to do NoteIntentionalCrash(). Maybe the test can send a message to the child and wait for a reply, after the process is created but before the button is clicked.
| Assignee | ||
Comment 1•4 years ago
|
||
It looks like NoteIntentionalCrash() is exposed to JS via ChromeUtils.privateNoteIntentionalCrash(). Keep in mind that this must be called in the content process that is about to be killed, and the parent process needs to wait for a reply from the content process before it does the kill to make sure that the logging has completed.
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 2•4 years ago
|
||
This appears to only fail with Fission.
| Assignee | ||
Comment 3•4 years ago
|
||
This test kills a child process when Fission is enabled. Add an annotation
to the leak log for the process so that the leak checker doesn't produce an
error.
Comment 4•4 years ago
|
||
Changing severity to NA because of being test only.
Comment 6•4 years ago
|
||
| bugherder | ||
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 7•4 years ago
•
|
||
Comment on attachment 9243511 [details]
Bug 1733126 - Add an annotation for the leak checker in about:processes tests.
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: test only change to fix intermittent failures
- User impact if declined: none
- Fix Landed on Version: 95
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): test only
- String or UUID changes made by this patch: none
Beta/Release Uplift Approval Request
See above
Comment 8•4 years ago
|
||
Comment on attachment 9243511 [details]
Bug 1733126 - Add an annotation for the leak checker in about:processes tests.
Approved for 94.0b2.
Comment 9•4 years ago
|
||
| bugherder uplift | ||
Comment 10•4 years ago
|
||
Comment on attachment 9243511 [details]
Bug 1733126 - Add an annotation for the leak checker in about:processes tests.
Approved for 91.3esr.
Comment 11•4 years ago
|
||
| bugherder uplift | ||
Description
•