diff --git a/widget/cocoa/nsChildView.mm b/widget/cocoa/nsChildView.mm index 9f5364d670fc..20ac968ce179 100644 --- a/widget/cocoa/nsChildView.mm +++ b/widget/cocoa/nsChildView.mm @@ -66,9 +66,6 @@ #include "nsAccessibilityService.h" #include "mozilla/a11y/Platform.h" #endif -#ifdef MOZ_CRASHREPORTER -#include "nsExceptionHandler.h" -#endif #include "mozilla/Preferences.h" @@ -5212,40 +5209,16 @@ static int32_t RoundUp(double aDouble) #if !defined(RELEASE_BUILD) || defined(DEBUG) if (mGeckoChild && mTextInputHandler && mTextInputHandler->IsFocused()) { -#ifdef MOZ_CRASHREPORTER - NSWindow* window = [self window]; - NSString* info = [NSString stringWithFormat:@"view [%@], window [%@], key event [%@], window is key %i, app is active %i", - self, window, theEvent, [window isKeyWindow], [NSApp isActive]]; - nsAutoCString additionalInfo([info UTF8String]); -#endif if (mIsPluginView) { if (TextInputHandler::IsSecureEventInputEnabled()) { - nsAutoCString message("While a plugin has focus, we must not be in secure mode"); -#ifdef MOZ_CRASHREPORTER - CrashReporter::AppendAppNotesToCrashReport(NS_LITERAL_CSTRING("\nBug 893973: ") + - message); - CrashReporter::AppendAppNotesToCrashReport(additionalInfo); -#endif - MOZ_CRASH(PromiseFlatCString(message).get()); + MOZ_CRASH("While a plugin has focus, we must not be in secure mode"); } } else if (mGeckoChild->GetInputContext().IsPasswordEditor() && !TextInputHandler::IsSecureEventInputEnabled()) { - nsAutoCString message("A password editor has focus, but not in secure input mode"); -#ifdef MOZ_CRASHREPORTER - CrashReporter::AppendAppNotesToCrashReport(NS_LITERAL_CSTRING("\nBug 893973: ") + - message); - CrashReporter::AppendAppNotesToCrashReport(additionalInfo); -#endif - MOZ_CRASH(PromiseFlatCString(message).get()); + MOZ_CRASH("A password editor has focus, but not in secure input mode"); } else if (!mGeckoChild->GetInputContext().IsPasswordEditor() && TextInputHandler::IsSecureEventInputEnabled()) { - nsAutoCString message("A non-password editor has focus, but in secure input mode"); -#ifdef MOZ_CRASHREPORTER - CrashReporter::AppendAppNotesToCrashReport(NS_LITERAL_CSTRING("\nBug 893973: ") + - message); - CrashReporter::AppendAppNotesToCrashReport(additionalInfo); -#endif - MOZ_CRASH(PromiseFlatCString(message).get()); + MOZ_CRASH("A non-password editor has focus, but in secure input mode"); } } #endif // #if !defined(RELEASE_BUILD) || defined(DEBUG)