Closed Bug 1170595 Opened 5 years ago Closed 5 years ago

fix race between document shutdown in child and parent sending messages

Categories

(Core :: Disability Access APIs, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: tbsaunde, Assigned: tbsaunde)

Details

Attachments

(3 files)

No description provided.
Assignee: nobody → tbsaunde+mozbugs
Comment on attachment 8614109 [details] [diff] [review]
switch to sending __delete__ from the parent instead of the child

Review of attachment 8614109 [details] [diff] [review]:
-----------------------------------------------------------------

r=me. Thanks for IRC'ing. (__delete__ is still a bit of mysterious to me)

::: accessible/ipc/DocAccessibleChild.h
@@ +33,5 @@
>    ~DocAccessibleChild()
>    {
> +    MOZ_ASSERT(!mDoc);
> +    if (mDoc)
> +      mDoc->SetIPCDoc(nullptr);

nit: If you have any hunches why we need this maybe add a comment?
Attachment #8614109 - Flags: review?(dbolter) → review+
Attachment #8614108 - Flags: review?(lorien) → review+
Comment on attachment 8615992 [details] [diff] [review]
only send __delete__ from DocAccessibleParent if the tab isn't destroyed

> DocAccessibleParent::RecvShutdown()
> {
>   Destroy();
>+
>+  if (!static_cast<dom::TabParent*>(Manager())->IsDestroyed()) {
>   return PDocAccessibleParent::Send__delete__(this);
Missing 2 space indentation for the return
Attachment #8615992 - Flags: review?(bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/33283f55d8ef
https://hg.mozilla.org/mozilla-central/rev/78fc82c0601a
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in before you can comment on or make changes to this bug.