Bug 1307491 - (Part 2) Remove support for per-app-offline in dom/ [nukeb2g] r=baku

MozReview-Commit-ID: DV58awPq98
This commit is contained in:
Valentin Gosu
2016-10-17 03:58:54 +02:00
parent 69e93335ce
commit e93d02f3f0
5 changed files with 6 additions and 24 deletions

View File

@@ -97,10 +97,6 @@ nsHTMLDNSPrefetch::Shutdown()
bool
nsHTMLDNSPrefetch::IsAllowed (nsIDocument *aDocument)
{
if (NS_IsAppOffline(aDocument->NodePrincipal())) {
return false;
}
// There is no need to do prefetch on non UI scenarios such as XMLHttpRequest.
return aDocument->IsDNSPrefetchAllowed() && aDocument->GetWindow();
}