mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
Issue #1877 - Resolve RELEASE_OR_BETA conditionals.
This commit is contained in:
parent
93c90e371b
commit
d4eac725fd
30 changed files with 75 additions and 144 deletions
|
|
@ -1,5 +1,4 @@
|
|||
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
|
@ -146,11 +145,11 @@ GetRequestingPrincipal(const FTPChannelCreationArgs& aArgs)
|
|||
|
||||
// Bug 1289001 - If GetValidatedOriginAttributes returns an error string, that
|
||||
// usually leads to a content crash with very little info about the cause.
|
||||
// We prefer to crash on the parent, so we get the reason in the crash report.
|
||||
// We prefer to crash on the parent.
|
||||
static MOZ_COLD
|
||||
void CrashWithReason(const char * reason)
|
||||
{
|
||||
#ifndef RELEASE_OR_BETA
|
||||
#ifdef DEBUG
|
||||
MOZ_CRASH_UNSAFE_OOL(reason);
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue