Closed Bug 1274711 Opened 8 years ago Closed 8 years ago

Using IPCStream in an ipdl file requires including PFileDescriptorSet and PSendStream

Categories

(Core :: IPC, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 792908
Tracking Status
firefox49 --- affected

People

(Reporter: mccr8, Unassigned)

Details

I added an argument of IPCStream to an IPDL file (uriloader/exthandler/PExternalHelperApp.ipdl), and also "include IPCStream". However, the resulting generated file did not compile until I also added "include protocol PFileDescriptorSet;" and "include protocol PSendStream;". It would be nice if I didn't have to include these, or at least the documentation for IPCStream should mention them.
Semi-relatedly, the documention example for AutoIPCStream should indicate that it is really mozilla::ipc::AutoIPCStream, or have a "using namespace mozilla::ipc;" in there somewhere.
This is a geneeal ipdl issue.  I can find the bug when I get back to my computer.
Yeah, I wasn't sure if this was something you could fix, but you should at least add documentation about what needs to be included. :)
ni(bkelly) for comment 3.
Flags: needinfo?(bkelly)
Whiteboard: btpp-followup-2016-07-05
Someone should just fix bug 792908.  I think trying to document everywhere this is broken is going to be self defeating every time someone adds a new protocol somewhere.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(bkelly)
Resolution: --- → DUPLICATE
Whiteboard: btpp-followup-2016-07-05
You need to log in before you can comment on or make changes to this bug.