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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user