Closed Bug 1712725 Opened 3 years ago Closed 3 years ago

Stop passing the CC participant to mozilla::DropJSObjects

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: peterv, Assigned: peterv)

Details

Attachments

(3 files)

No description provided.

Various code was passing 'this' to mozilla::DropJSObjects in unlink, but that's
the CC participant. The right object to pass is 'tmp'. I also added static
asserts in mozilla::Hold/DropJSObjects to block this in the future.

There's a pattern of clearing SJ things when calling mozilla::DropJSObjects,
but mozilla::DropJSObjects already clears the JS things itself by calling
CycleCollectedJSRuntime::RemoveJSHolder.

Depends on D115884

Severity: -- → S3
Pushed by pvanderbeken@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/13f0a2c96ff2
Pass the correct object to mozilla::DropJSObjects. r=mccr8
https://hg.mozilla.org/integration/autoland/rev/0841abff498e
Stop clearing JS things when calling mozilla::DropJSObjects. r=mccr8
https://hg.mozilla.org/integration/autoland/rev/f69509e8ee12
Disallow using HoldJSObjects/DropJSObjects for non-nsISupports classes that don't have a CC participant. r=mccr8
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: