зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1343489 - Remove unnecessary IsNeckoChild() call. r=mcmanus
MozReview-Commit-ID: B8PxDqO6fp5
This commit is contained in:
Родитель
9720220674
Коммит
a140409193
|
@ -2104,14 +2104,12 @@ nsHttpHandler::SpeculativeConnectInternal(nsIURI *aURI,
|
|||
// feature
|
||||
obsService->NotifyObservers(nullptr, "speculative-connect-request",
|
||||
nullptr);
|
||||
if (!IsNeckoChild()) {
|
||||
for (auto* cp : dom::ContentParent::AllProcesses(dom::ContentParent::eLive)) {
|
||||
PNeckoParent* neckoParent = SingleManagedOrNull(cp->ManagedPNeckoParent());
|
||||
if (!neckoParent) {
|
||||
continue;
|
||||
}
|
||||
Unused << neckoParent->SendSpeculativeConnectRequest();
|
||||
for (auto* cp : dom::ContentParent::AllProcesses(dom::ContentParent::eLive)) {
|
||||
PNeckoParent* neckoParent = SingleManagedOrNull(cp->ManagedPNeckoParent());
|
||||
if (!neckoParent) {
|
||||
continue;
|
||||
}
|
||||
Unused << neckoParent->SendSpeculativeConnectRequest();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче