Open Bug 1509143 Opened 1 year ago Updated 3 months ago

Consider making IProtocol implement nsISupports


(Core :: IPC, enhancement, P3)





(Reporter: Nika, Unassigned)


(Depends on 2 open bugs, Blocks 1 open bug)


In reality, the majority of our actors are already reference counter, and implemented using hacky workarounds on top of the custom lifecycle system in IPDL. It would make implementing new actors easier & less error prone if we could move this understanding of actor lifetimes into IPDL itself, which would probably involve making IProtocol objects implement nsISupports (for AddRef and Release virtual methods).

Alternatively, we could add AddRef and Release virtual methods directly on IProtocol, but it seems like it'd be cleaner to just use nsISupports for that purpose.
Depends on: 1509930
Depends on: 1509591
Depends on: 1510388
Depends on: 1540731
You need to log in before you can comment on or make changes to this bug.