Skip to content

Commit

Permalink
Bug 1822062 - avoid sending NotifyVisited IPCs with no URIs, r=emilio.
Browse files Browse the repository at this point in the history
  • Loading branch information
fqueze committed Mar 15, 2023
1 parent e678bab commit a2d5272
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docshell/base/BaseHistory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ void BaseHistory::SendPendingVisitedResultsToChildProcesses() {
resultsForProcess.AppendElement(result.mResult);
}
}
Unused << NS_WARN_IF(!cp->SendNotifyVisited(resultsForProcess));
if (!resultsForProcess.IsEmpty()) {
Unused << NS_WARN_IF(!cp->SendNotifyVisited(resultsForProcess));
}
}
}

Expand Down

0 comments on commit a2d5272

Please sign in to comment.