Open
      
        Bug 1509143
      
      
        Opened 6 years ago
          Updated 3 years ago
      
        
    
  
Consider making IProtocol implement nsISupports 
    Categories
(Core :: IPC, enhancement, P3)
        Core
          
        
        
      
        
    
        IPC
          
        
        
      
        
    Tracking
()
        NEW
        
        
    
  
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.
| Updated•3 years ago
           | 
Severity: normal → S3
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•