Open Bug 1509143 Opened 6 years ago Updated 2 years ago

Consider making IProtocol implement nsISupports

Categories

(Core :: IPC, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: nika, Unassigned)

References

(Depends on 2 open bugs)

Details

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
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.