Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | // See bug 538586: if the top-level protocol's actor is deleted before |
michael@0 | 2 | // the "connection error" notification comes in from the IO thread, |
michael@0 | 3 | // IPDL teardown never occurs, even if Channel::Close() is called |
michael@0 | 4 | // after the error. |
michael@0 | 5 | |
michael@0 | 6 | namespace mozilla { |
michael@0 | 7 | namespace _ipdltest { |
michael@0 | 8 | |
michael@0 | 9 | // NB: needs to be RPC so that the parent blocks on the child's crash. |
michael@0 | 10 | intr protocol PTestCrashCleanup { |
michael@0 | 11 | child: |
michael@0 | 12 | intr DIEDIEDIE(); |
michael@0 | 13 | __delete__(); |
michael@0 | 14 | |
michael@0 | 15 | state ALIVE: |
michael@0 | 16 | call DIEDIEDIE goto CRASH; |
michael@0 | 17 | state CRASH: |
michael@0 | 18 | send __delete__; |
michael@0 | 19 | }; |
michael@0 | 20 | |
michael@0 | 21 | } |
michael@0 | 22 | } |