Removed unnecessary IsNeckoChild() call per
bug 1343489
MozReview-Commit-ID: 8szo8dfDNMq
--- a/netwerk/protocol/http/nsHttpHandler.cpp
+++ b/netwerk/protocol/http/nsHttpHandler.cpp
@@ -2252,24 +2252,23 @@ nsHttpHandler::SpeculativeConnectInterna
MOZ_ASSERT(NS_IsMainThread());
nsCOMPtr<nsIObserverService> obsService = services::GetObserverService();
if (mDebugObservations && obsService) {
// this is basically used for test coverage of an otherwise 'hintable'
// 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();
}
}
nsISiteSecurityService* sss = gHttpHandler->GetSSService();
bool isStsHost = false;
if (!sss)
return NS_OK;