Bug 1180323 - Only look at TP table before cancelling speculative connections. r=gcp
This commit is contained in:
@@ -1228,22 +1228,6 @@ nsUrlClassifierDBService::Classify(nsIPrincipal* aPrincipal,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsUrlClassifierDBService::ClassifyLocal(nsIPrincipal* aPrincipal,
|
||||
bool aTrackingProtectionEnabled,
|
||||
nsresult* aResponse)
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread(), "ClassifyLocal must be on main thread");
|
||||
*aResponse = NS_OK;
|
||||
nsAutoCString tables;
|
||||
BuildTables(aTrackingProtectionEnabled, tables);
|
||||
nsAutoCString results;
|
||||
nsresult rv = ClassifyLocalWithTables(aPrincipal, tables, results);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
*aResponse = TablesToResponse(results);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsUrlClassifierDBService::ClassifyLocalWithTables(nsIPrincipal *aPrincipal,
|
||||
const nsACString & aTables,
|
||||
|
||||
Reference in New Issue
Block a user