зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
210db4d258
Коммит
fa87352be2
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче