|
1 // See bug 538586: if the top-level protocol's actor is deleted before |
|
2 // the "connection error" notification comes in from the IO thread, |
|
3 // IPDL teardown never occurs, even if Channel::Close() is called |
|
4 // after the error. |
|
5 |
|
6 namespace mozilla { |
|
7 namespace _ipdltest { |
|
8 |
|
9 // NB: needs to be RPC so that the parent blocks on the child's crash. |
|
10 intr protocol PTestCrashCleanup { |
|
11 child: |
|
12 intr DIEDIEDIE(); |
|
13 __delete__(); |
|
14 |
|
15 state ALIVE: |
|
16 call DIEDIEDIE goto CRASH; |
|
17 state CRASH: |
|
18 send __delete__; |
|
19 }; |
|
20 |
|
21 } |
|
22 } |