Bug 1343489 - Remove unnecessary IsNeckoChild() call. r=mcmanus

MozReview-Commit-ID: B8PxDqO6fp5
This commit is contained in:
Nick 2017-03-01 17:45:41 -05:00
parent 9720220674
commit a140409193

View file

@ -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();
}
}