зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset d6aecbbb589f (bug 1620984
) for likely causing performance regression bug 1625071.
--HG-- extra : rebase_source : ffd0eb3ef56a8c15f66df733610c41e69479fe7c
This commit is contained in:
Родитель
54c6ddefbc
Коммит
9511c76e29
|
@ -34,8 +34,21 @@ bool CrashReport::Deliver(nsIPrincipal* aPrincipal, bool aIsOOM) {
|
|||
return false;
|
||||
}
|
||||
|
||||
nsCString safe_origin_spec;
|
||||
aPrincipal->GetExposableSpec(safe_origin_spec);
|
||||
nsCOMPtr<nsIURI> origin_uri;
|
||||
nsresult rv = aPrincipal->GetURI(getter_AddRefs(origin_uri));
|
||||
NS_ENSURE_SUCCESS(rv, false);
|
||||
NS_ENSURE_TRUE(origin_uri, false);
|
||||
|
||||
nsCOMPtr<nsIURI> safe_origin_uri;
|
||||
rv = NS_MutateURI(origin_uri)
|
||||
.SetUserPass(EmptyCString())
|
||||
.Finalize(safe_origin_uri);
|
||||
NS_ENSURE_SUCCESS(rv, false);
|
||||
NS_ENSURE_TRUE(safe_origin_uri, false);
|
||||
|
||||
nsAutoCString safe_origin_spec;
|
||||
rv = safe_origin_uri->GetSpec(safe_origin_spec);
|
||||
NS_ENSURE_SUCCESS(rv, false);
|
||||
|
||||
ReportDeliver::ReportData data;
|
||||
data.mType = NS_LITERAL_STRING("crash");
|
||||
|
|
Загрузка…
Ссылка в новой задаче