Closed Bug 1749161 Opened 3 years ago Closed 3 years ago

Does LockRequestChild need to call AbortFollower::Traverse

Categories

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

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: evilpie, Unassigned)

References

Details

I am looking into implementing my own AbortFollower and I noticed that LockRequestChild doesn't seem to call AbortFollower::Traverse or AbortFollower::Unlink. I am wondering if it should do that.

Thanks for filing. At worst, this will just cause a leak, so it doesn't need to be a security issue.

Group: core-security
Severity: -- → S4
Blocks: 1725941
No longer regressed by: 1725941

LockRequestChild is refcounted but that's only for weakptr support. By design the lifetime of a LockRequest actor is the lifetime of its lock, and that lifetime is controlled by Lock and LockManagerParent. Since they will actively cut the cycle, I think there can't be a leak here.

But Olli, could you also double check?

Flags: needinfo?(bugs)

Yeah, the comment above explains the situation here.

Flags: needinfo?(bugs)

Thanks, closing.

Thank you Tom for noticing this, though!

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID

I wonder if some comment somewhere would be useful.

I can do that as a part of bug 1660555, since those traverse things are added as parts of that.

You need to log in before you can comment on or make changes to this bug.