Closed Bug 1851930 Opened 1 years ago Closed 1 years ago

Default Agent background task takes long time to exit

Categories

(Toolkit :: Default Browser Agent, defect, P1)

defect

Tracking

()

VERIFIED FIXED
119 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- unaffected
firefox117 --- unaffected
firefox118 --- unaffected
firefox119 + disabled
firefox120 --- verified

People

(Reporter: nrishel, Assigned: nrishel)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

Due to a mistake in setting the minimum runtime instead of the maximum runtime for the Default Agent background task, it takes an exceedingly long time to exit leaving what appears to be a zombie process.

We won't be using this outside of the Default Agent, and having this at the header level invites a debugging pain point when a background task doesn't exit and the mutex lifetime is tied to the DefaultAgent XPCOM object instead of the function call lifetime.

Set release status flags based on info from the regressing bug 1838754

Severity: -- → S2
Priority: -- → P1
Pushed by nrishel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/214f0e1df0dd Pre: Move Default Agent registry mutex out of header into source. r=nalexander,bytesized https://hg.mozilla.org/integration/autoland/rev/f06abc41688e Correct the Default Agent background task to set a maximum (not minimum) runtime. r=nalexander,bytesized
Status: ASSIGNED → RESOLVED
Closed: 1 years ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch

Backed out due to changes breaking both Default Agent telemetry and launching Firefox in response to interaction with the Default Agent notifications.

Depends on D190871

Backed out due to changes breaking both Default Agent telemetry and launching Firefox in response to interaction with the Default Agent notifications.

Depends on D190872

Attachment #9358192 - Attachment description: Backed out changeset f06abc41688e (Bug 1851930) → WIP: Backed out changeset f06abc41688e (Bug 1851930)
Attachment #9358193 - Attachment description: Backed out changeset 214f0e1df0dd (Bug 1851930) → WIP: Backed out changeset 214f0e1df0dd (Bug 1851930)
Attachment #9358192 - Attachment description: WIP: Backed out changeset f06abc41688e (Bug 1851930) → Backed out changeset f06abc41688e (Bug 1851930)
Attachment #9358193 - Attachment description: WIP: Backed out changeset 214f0e1df0dd (Bug 1851930) → Backed out changeset 214f0e1df0dd (Bug 1851930)

Is it possible to provide the corresponding STR in order to verify this fix? Thanks

Flags: needinfo?(nrishel)

Tested on 120.0b4 Firefox on Windows 10 and saw that the issue is no longer reproducible.

Processes no longer remain hanging after being started from Task Scheduler.

Status: RESOLVED → VERIFIED
Flags: needinfo?(nrishel)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: