Re: Data validation
Chris Jones <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
Benjamin Smedberg wrote: > Are you imagining that any error returned from an actor method abort the > child process? > That was the original idea, but I got gun-shy while implementing it. So I created a variety of cases for which we could decide the appropriate action http://hg.mozilla.org/projects/electrolysis/file/c3b494310a9f/ipc/glue/AsyncChannel.cpp#l120 I think error handling might be best implemented by an OnError() handler that returns some Action, such as KillItWithFire. This could also fold into the race detector recently added; we could create similar policies for racy RPC calls. But I really haven't given all of this too much thought. Cheers, Chris