Closed Bug 1733126 Opened 4 years ago Closed 4 years ago

about:processes tests kill processes without calling NoteIntentionalCrash

Categories

(Core :: DOM: Content Processes, defect, P2)

defect

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox-esr78 --- wontfix
firefox-esr91 --- fixed
firefox92 --- wontfix
firefox93 --- wontfix
firefox94 --- fixed
firefox95 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

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.

See Also: → 1733129

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: nobody → continuation

This appears to only fail with Fission.

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.

Changing severity to NA because of being test only.

Severity: -- → N/A
Priority: -- → P2
Pushed by amccreight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/310926b78a76 Add an annotation for the leak checker in about:processes tests. r=kmag
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch

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

Attachment #9243511 - Flags: approval-mozilla-esr91?
Attachment #9243511 - Flags: approval-mozilla-beta?

Comment on attachment 9243511 [details]
Bug 1733126 - Add an annotation for the leak checker in about:processes tests.

Approved for 94.0b2.

Attachment #9243511 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Comment on attachment 9243511 [details]
Bug 1733126 - Add an annotation for the leak checker in about:processes tests.

Approved for 91.3esr.

Attachment #9243511 - Flags: approval-mozilla-esr91? → approval-mozilla-esr91+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: