Commit 9ef82b61 authored by Andrew McCreight's avatar Andrew McCreight
Browse files

Bug 1748913 - Add null check in ContentParent::RecvAdjustWindowFocus. r=edgar

parent e2948093
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6803,7 +6803,7 @@ mozilla::ipc::IPCResult ContentParent::RecvAdjustWindowFocus(
    CanonicalBrowsingContext* canonicalParent = parent->Canonical();
    ContentParent* cp = cpm->GetContentProcessById(
        ContentParentId(canonicalParent->OwnerProcessId()));
    if (!processes.Get(cp)) {
    if (cp && !processes.Get(cp)) {
      Unused << cp->SendAdjustWindowFocus(context, aIsVisible, aActionId);
      processes.InsertOrUpdate(cp, true);
    }