Bug 1852213 - Add crash annotation to record differing load flags. r=jjaschke,necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D187969
This commit is contained in:
Andreas Farre 2023-09-12 13:52:55 +00:00
Родитель 210db4d258
Коммит fa87352be2
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -306,10 +306,10 @@ NS_IMETHODIMP DocumentChannel::SetLoadFlags(nsLoadFlags aLoadFlags) {
return NS_OK;
}
CrashReporter::AnnotateCrashReport(
CrashReporter::Annotation::MozCrashReason,
nsPrintfCString("Differing load flags: %x", mLoadFlags ^ aLoadFlags));
MOZ_CRASH("DocumentChannel::SetLoadFlags: Don't set flags after creation");
MOZ_CRASH_UNSAFE_PRINTF(
"DocumentChannel::SetLoadFlags: Don't set flags after creation "
"(differing flags %x)",
mLoadFlags ^ aLoadFlags);
}
NS_IMETHODIMP DocumentChannel::GetOriginalURI(nsIURI** aOriginalURI) {