mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00

Actor reading from IPC message is codegen'd with a lot of repeated code. We can improve that by moving the core actor reading code out of subclasses into IProtocolmanager. While we still need to codegen a bit of code to cast the read actor to the proper type, the code overall is smaller. The lone downside is that if we do encounter an error reading the actor id out of the message, the precision of our crash messages is reduced somewhat: we no longer have the protocol name doing the reading, nor do we get crash report annotations, since we can't tell whether we're in the parent or child process.