Skip to content

Commit

Permalink
Bug 1816687 - Add missing null check to ContentParent::RecvRaiseWindo…
Browse files Browse the repository at this point in the history
…w. r=nika

Differential Revision: https://phabricator.services.mozilla.com/D169811
  • Loading branch information
choller committed Feb 15, 2023
1 parent b3b6d29 commit 120ee57
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dom/ipc/ContentParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7377,10 +7377,7 @@ mozilla::ipc::IPCResult ContentParent::RecvRaiseWindow(

CanonicalBrowsingContext* context = aContext.get_canonical();

ContentProcessManager* cpm = ContentProcessManager::GetSingleton();
if (cpm) {
ContentParent* cp =
cpm->GetContentProcessById(ContentParentId(context->OwnerProcessId()));
if (ContentParent* cp = context->GetContentParent()) {
Unused << cp->SendRaiseWindow(context, aCallerType, aActionId);
}
return IPC_OK();
Expand Down

0 comments on commit 120ee57

Please sign in to comment.