Thanks. Attaching a first version. I'm not sure how to best test this. I guess 1. I'll need a mochitest of whichever kind we're using in `dom/ipc/tests/JSWindowActor`; 2. Create a `JSWindowActor{Child, Parent}` pair; 3. Send the message `"crash"` to the child; 4. Make sure that the child does crash; 5. From the parent, somehow locate the crash file <-- I've seen the code that does this in a xpcshell, but how do I do this in a mochitest? 6. Run the minidump analyzer manually from the parent; 7. From the parent, look at the table of annotations; 8. Check that we have the right annotations. Does this make sense?
Bug 1605209 Comment 9 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Thanks. Attaching a first version. I'm not sure how to best test this. I guess 1. I'll need a mochitest of whichever kind we're using in `dom/ipc/tests/JSWindowActor`; 2. Create a `JSWindowActor{Child, Parent}` pair; 3. Send the message `"crash"` to the child; 4. Make sure that the child does crash; 5. From the parent, somehow locate the crash file <-- I've seen the code that does this in a xpcshell, but how do I do this in a mochitest? 6. Run the minidump analyzer manually from the parent; 7. From the parent, look at the table of annotations; 8. Check that we have the right annotations. Does this make sense? Is there a better way?