Bug 1931877, part 2 - Replace 2 arg MOZ_DIAGNOSTIC_ASSERT(false) with MOZ_DIAGNOSTIC_CRASH. r=necko-reviewers,win-reviewers,glandium,rkraesig,valentin

Differential Revision: https://phabricator.services.mozilla.com/D229361
This commit is contained in:
Andrew McCreight
2024-11-20 16:37:50 +00:00
parent bf08ac1587
commit b3623f30a2
40 changed files with 76 additions and 83 deletions

View File

@@ -1563,9 +1563,9 @@ JSObject* BrowsingContext::ReadStructuredClone(JSContext* aCx,
// Note: Do this check after reading our ID data. Returning null will abort
// the decode operation anyway, but we should at least be as safe as possible.
if (NS_WARN_IF(!NS_IsMainThread())) {
MOZ_DIAGNOSTIC_ASSERT(false,
"We shouldn't be trying to decode a BrowsingContext "
"on a background thread.");
MOZ_DIAGNOSTIC_CRASH(
"We shouldn't be trying to decode a BrowsingContext "
"on a background thread.");
return nullptr;
}