forked from mirrors/gecko-dev
Bug 1402519 - Remove MOZ_CRASHREPORTER directives from widget; r=froydnj
--HG-- extra : rebase_source : 4472a8d6ce5edf1b5a4665d522a1816020308a43
This commit is contained in:
parent
52fcc3bed8
commit
cbb30621ec
14 changed files with 50 additions and 108 deletions
|
|
@ -15,9 +15,7 @@
|
||||||
#include "mozilla/TextComposition.h"
|
#include "mozilla/TextComposition.h"
|
||||||
#include "mozilla/TextEvents.h"
|
#include "mozilla/TextEvents.h"
|
||||||
#include "mozilla/dom/TabParent.h"
|
#include "mozilla/dom/TabParent.h"
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
#include "nsExceptionHandler.h"
|
#include "nsExceptionHandler.h"
|
||||||
#endif // #ifdef MOZ_CRASHREPORTER
|
|
||||||
#include "nsIWidget.h"
|
#include "nsIWidget.h"
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
|
|
@ -1113,7 +1111,7 @@ ContentCacheInParent::OnCompositionEvent(const WidgetCompositionEvent& aEvent)
|
||||||
GetBoolName(mWidgetHasComposition), mPendingCompositionCount,
|
GetBoolName(mWidgetHasComposition), mPendingCompositionCount,
|
||||||
mCommitStringByRequest));
|
mCommitStringByRequest));
|
||||||
|
|
||||||
#if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
mDispatchedEventMessages.AppendElement(aEvent.mMessage);
|
mDispatchedEventMessages.AppendElement(aEvent.mMessage);
|
||||||
#endif // #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#endif // #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
|
|
||||||
|
|
@ -1193,9 +1191,9 @@ ContentCacheInParent::OnSelectionEvent(
|
||||||
GetBoolName(aSelectionEvent.mUseNativeLineBreak), mPendingEventsNeedingAck,
|
GetBoolName(aSelectionEvent.mUseNativeLineBreak), mPendingEventsNeedingAck,
|
||||||
GetBoolName(mWidgetHasComposition), mPendingCompositionCount));
|
GetBoolName(mWidgetHasComposition), mPendingCompositionCount));
|
||||||
|
|
||||||
#if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
mDispatchedEventMessages.AppendElement(aSelectionEvent.mMessage);
|
mDispatchedEventMessages.AppendElement(aSelectionEvent.mMessage);
|
||||||
#endif // #if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#endif // MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
|
|
||||||
mPendingEventsNeedingAck++;
|
mPendingEventsNeedingAck++;
|
||||||
}
|
}
|
||||||
|
|
@ -1212,27 +1210,27 @@ ContentCacheInParent::OnEventNeedingAckHandled(nsIWidget* aWidget,
|
||||||
"aMessage=%s), mPendingEventsNeedingAck=%u, mPendingCompositionCount=%" PRIu8,
|
"aMessage=%s), mPendingEventsNeedingAck=%u, mPendingCompositionCount=%" PRIu8,
|
||||||
this, aWidget, ToChar(aMessage), mPendingEventsNeedingAck, mPendingCompositionCount));
|
this, aWidget, ToChar(aMessage), mPendingEventsNeedingAck, mPendingCompositionCount));
|
||||||
|
|
||||||
#if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
mReceivedEventMessages.AppendElement(aMessage);
|
mReceivedEventMessages.AppendElement(aMessage);
|
||||||
#endif // #if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#endif // MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
|
|
||||||
if (WidgetCompositionEvent::IsFollowedByCompositionEnd(aMessage) ||
|
if (WidgetCompositionEvent::IsFollowedByCompositionEnd(aMessage) ||
|
||||||
aMessage == eCompositionCommitRequestHandled) {
|
aMessage == eCompositionCommitRequestHandled) {
|
||||||
|
|
||||||
#if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
if (mPendingCompositionCount == 1) {
|
if (mPendingCompositionCount == 1) {
|
||||||
RemoveUnnecessaryEventMessageLog();
|
RemoveUnnecessaryEventMessageLog();
|
||||||
}
|
}
|
||||||
#endif // #if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#endif // #if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
|
|
||||||
if (NS_WARN_IF(!mPendingCompositionCount)) {
|
if (NS_WARN_IF(!mPendingCompositionCount)) {
|
||||||
#if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
nsPrintfCString info("\nThere is no pending composition but received %s "
|
nsPrintfCString info("\nThere is no pending composition but received %s "
|
||||||
"message from the remote child\n\n",
|
"message from the remote child\n\n",
|
||||||
ToChar(aMessage));
|
ToChar(aMessage));
|
||||||
AppendEventMessageLog(info);
|
AppendEventMessageLog(info);
|
||||||
CrashReporter::AppendAppNotesToCrashReport(info);
|
CrashReporter::AppendAppNotesToCrashReport(info);
|
||||||
#endif // #if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#endif // #if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
MOZ_DIAGNOSTIC_ASSERT(false,
|
MOZ_DIAGNOSTIC_ASSERT(false,
|
||||||
"No pending composition but received unexpected commit event");
|
"No pending composition but received unexpected commit event");
|
||||||
mPendingCompositionCount = 1;
|
mPendingCompositionCount = 1;
|
||||||
|
|
@ -1254,13 +1252,13 @@ ContentCacheInParent::OnEventNeedingAckHandled(nsIWidget* aWidget,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NS_WARN_IF(!mPendingEventsNeedingAck)) {
|
if (NS_WARN_IF(!mPendingEventsNeedingAck)) {
|
||||||
#if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
nsPrintfCString info("\nThere is no pending events but received %s "
|
nsPrintfCString info("\nThere is no pending events but received %s "
|
||||||
"message from the remote child\n\n",
|
"message from the remote child\n\n",
|
||||||
ToChar(aMessage));
|
ToChar(aMessage));
|
||||||
AppendEventMessageLog(info);
|
AppendEventMessageLog(info);
|
||||||
CrashReporter::AppendAppNotesToCrashReport(info);
|
CrashReporter::AppendAppNotesToCrashReport(info);
|
||||||
#endif // #if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#endif // #if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
MOZ_DIAGNOSTIC_ASSERT(false,
|
MOZ_DIAGNOSTIC_ASSERT(false,
|
||||||
"No pending event message but received unexpected event");
|
"No pending event message but received unexpected event");
|
||||||
mPendingEventsNeedingAck = 1;
|
mPendingEventsNeedingAck = 1;
|
||||||
|
|
@ -1294,11 +1292,11 @@ ContentCacheInParent::RequestIMEToCommitComposition(nsIWidget* aWidget,
|
||||||
// composition events for cleaning up TextComposition and handle the
|
// composition events for cleaning up TextComposition and handle the
|
||||||
// request as it's handled asynchronously.
|
// request as it's handled asynchronously.
|
||||||
if (mPendingCompositionCount > 1) {
|
if (mPendingCompositionCount > 1) {
|
||||||
#if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
mRequestIMEToCommitCompositionResults.
|
mRequestIMEToCommitCompositionResults.
|
||||||
AppendElement(RequestIMEToCommitCompositionResult::
|
AppendElement(RequestIMEToCommitCompositionResult::
|
||||||
eToOldCompositionReceived);
|
eToOldCompositionReceived);
|
||||||
#endif // #if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#endif // #if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1308,11 +1306,11 @@ ContentCacheInParent::RequestIMEToCommitComposition(nsIWidget* aWidget,
|
||||||
// TextComposition. So, this shouldn't do nothing and TextComposition
|
// TextComposition. So, this shouldn't do nothing and TextComposition
|
||||||
// should handle the request as it's handled asynchronously.
|
// should handle the request as it's handled asynchronously.
|
||||||
if (mIsPendingLastCommitEvent) {
|
if (mIsPendingLastCommitEvent) {
|
||||||
#if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
mRequestIMEToCommitCompositionResults.
|
mRequestIMEToCommitCompositionResults.
|
||||||
AppendElement(RequestIMEToCommitCompositionResult::
|
AppendElement(RequestIMEToCommitCompositionResult::
|
||||||
eToCommittedCompositionReceived);
|
eToCommittedCompositionReceived);
|
||||||
#endif // #if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#endif // #if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1321,11 +1319,11 @@ ContentCacheInParent::RequestIMEToCommitComposition(nsIWidget* aWidget,
|
||||||
if (!IMEStateManager::DoesTabParentHaveIMEFocus(&mTabParent)) {
|
if (!IMEStateManager::DoesTabParentHaveIMEFocus(&mTabParent)) {
|
||||||
// Use the latest composition string which may not be handled in the
|
// Use the latest composition string which may not be handled in the
|
||||||
// remote process for avoiding data loss.
|
// remote process for avoiding data loss.
|
||||||
#if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
mRequestIMEToCommitCompositionResults.
|
mRequestIMEToCommitCompositionResults.
|
||||||
AppendElement(RequestIMEToCommitCompositionResult::
|
AppendElement(RequestIMEToCommitCompositionResult::
|
||||||
eReceivedAfterTabParentBlur);
|
eReceivedAfterTabParentBlur);
|
||||||
#endif // #if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#endif // #if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
aCommittedString = mCompositionString;
|
aCommittedString = mCompositionString;
|
||||||
// After we return true from here, i.e., without actually requesting IME
|
// After we return true from here, i.e., without actually requesting IME
|
||||||
// to commit composition, we will receive eCompositionCommitRequestHandled
|
// to commit composition, we will receive eCompositionCommitRequestHandled
|
||||||
|
|
@ -1341,11 +1339,11 @@ ContentCacheInParent::RequestIMEToCommitComposition(nsIWidget* aWidget,
|
||||||
MOZ_LOG(sContentCacheLog, LogLevel::Warning,
|
MOZ_LOG(sContentCacheLog, LogLevel::Warning,
|
||||||
(" 0x%p RequestToCommitComposition(), "
|
(" 0x%p RequestToCommitComposition(), "
|
||||||
"does nothing due to no composition", this));
|
"does nothing due to no composition", this));
|
||||||
#if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
mRequestIMEToCommitCompositionResults.
|
mRequestIMEToCommitCompositionResults.
|
||||||
AppendElement(RequestIMEToCommitCompositionResult::
|
AppendElement(RequestIMEToCommitCompositionResult::
|
||||||
eReceivedButNoTextComposition);
|
eReceivedButNoTextComposition);
|
||||||
#endif // #if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#endif // #if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1376,11 +1374,11 @@ ContentCacheInParent::RequestIMEToCommitComposition(nsIWidget* aWidget,
|
||||||
// normally. On the other hand, TextComposition instance in the remote
|
// normally. On the other hand, TextComposition instance in the remote
|
||||||
// process won't dispatch following composition events and will be
|
// process won't dispatch following composition events and will be
|
||||||
// destroyed by IMEStateManager::DispatchCompositionEvent().
|
// destroyed by IMEStateManager::DispatchCompositionEvent().
|
||||||
#if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
mRequestIMEToCommitCompositionResults.
|
mRequestIMEToCommitCompositionResults.
|
||||||
AppendElement(RequestIMEToCommitCompositionResult::
|
AppendElement(RequestIMEToCommitCompositionResult::
|
||||||
eHandledAsynchronously);
|
eHandledAsynchronously);
|
||||||
#endif // #if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#endif // #if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1392,10 +1390,10 @@ ContentCacheInParent::RequestIMEToCommitComposition(nsIWidget* aWidget,
|
||||||
// IMEStateManager::DispatchCompositionEvent() at receiving the
|
// IMEStateManager::DispatchCompositionEvent() at receiving the
|
||||||
// eCompositionCommit event (Note that TextComposition instance in this
|
// eCompositionCommit event (Note that TextComposition instance in this
|
||||||
// process was already destroyed).
|
// process was already destroyed).
|
||||||
#if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
mRequestIMEToCommitCompositionResults.
|
mRequestIMEToCommitCompositionResults.
|
||||||
AppendElement(RequestIMEToCommitCompositionResult::eHandledSynchronously);
|
AppendElement(RequestIMEToCommitCompositionResult::eHandledSynchronously);
|
||||||
#endif // #if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#endif // #if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1492,7 +1490,7 @@ ContentCacheInParent::FlushPendingNotifications(nsIWidget* aWidget)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
|
|
||||||
void
|
void
|
||||||
ContentCacheInParent::RemoveUnnecessaryEventMessageLog()
|
ContentCacheInParent::RemoveUnnecessaryEventMessageLog()
|
||||||
|
|
@ -1581,7 +1579,7 @@ ContentCacheInParent::AppendEventMessageLog(nsACString& aLog) const
|
||||||
aLog.AppendLiteral("\n");
|
aLog.AppendLiteral("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // #if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#endif // #if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* mozilla::ContentCache::TextRectArray
|
* mozilla::ContentCache::TextRectArray
|
||||||
|
|
|
||||||
|
|
@ -410,7 +410,7 @@ private:
|
||||||
IMENotification mPendingLayoutChange;
|
IMENotification mPendingLayoutChange;
|
||||||
IMENotification mPendingCompositionUpdate;
|
IMENotification mPendingCompositionUpdate;
|
||||||
|
|
||||||
#if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
// Log of event messages to be output to crash report.
|
// Log of event messages to be output to crash report.
|
||||||
nsTArray<EventMessage> mDispatchedEventMessages;
|
nsTArray<EventMessage> mDispatchedEventMessages;
|
||||||
nsTArray<EventMessage> mReceivedEventMessages;
|
nsTArray<EventMessage> mReceivedEventMessages;
|
||||||
|
|
@ -450,7 +450,7 @@ private:
|
||||||
}
|
}
|
||||||
nsTArray<RequestIMEToCommitCompositionResult>
|
nsTArray<RequestIMEToCommitCompositionResult>
|
||||||
mRequestIMEToCommitCompositionResults;
|
mRequestIMEToCommitCompositionResults;
|
||||||
#endif // #if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#endif // MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
|
|
||||||
// mTabParent is owner of the instance.
|
// mTabParent is owner of the instance.
|
||||||
dom::TabParent& MOZ_NON_OWNING_REF mTabParent;
|
dom::TabParent& MOZ_NON_OWNING_REF mTabParent;
|
||||||
|
|
@ -507,7 +507,7 @@ private:
|
||||||
|
|
||||||
void FlushPendingNotifications(nsIWidget* aWidget);
|
void FlushPendingNotifications(nsIWidget* aWidget);
|
||||||
|
|
||||||
#if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
/**
|
/**
|
||||||
* Remove unnecessary messages from mDispatchedEventMessages and
|
* Remove unnecessary messages from mDispatchedEventMessages and
|
||||||
* mReceivedEventMessages.
|
* mReceivedEventMessages.
|
||||||
|
|
@ -518,7 +518,7 @@ private:
|
||||||
* Append event message log to aLog.
|
* Append event message log to aLog.
|
||||||
*/
|
*/
|
||||||
void AppendEventMessageLog(nsACString& aLog) const;
|
void AppendEventMessageLog(nsACString& aLog) const;
|
||||||
#endif // #if defined(MOZ_CRASHREPORTER) && MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
#endif // #if MOZ_DIAGNOSTIC_ASSERT_ENABLED
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace mozilla
|
} // namespace mozilla
|
||||||
|
|
|
||||||
|
|
@ -38,10 +38,6 @@
|
||||||
#include "gfxConfig.h"
|
#include "gfxConfig.h"
|
||||||
#include "DriverCrashGuard.h"
|
#include "DriverCrashGuard.h"
|
||||||
|
|
||||||
#if defined(MOZ_CRASHREPORTER)
|
|
||||||
#include "nsExceptionHandler.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
using namespace mozilla::widget;
|
using namespace mozilla::widget;
|
||||||
using namespace mozilla;
|
using namespace mozilla;
|
||||||
using mozilla::MutexAutoLock;
|
using mozilla::MutexAutoLock;
|
||||||
|
|
|
||||||
|
|
@ -11,14 +11,12 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include "nsCRTGlue.h"
|
#include "nsCRTGlue.h"
|
||||||
|
#include "nsExceptionHandler.h"
|
||||||
|
#include "nsICrashReporter.h"
|
||||||
#include "prenv.h"
|
#include "prenv.h"
|
||||||
|
|
||||||
#include "GfxInfoX11.h"
|
#include "GfxInfoX11.h"
|
||||||
|
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
#include "nsExceptionHandler.h"
|
|
||||||
#include "nsICrashReporter.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace widget {
|
namespace widget {
|
||||||
|
|
@ -176,9 +174,8 @@ GfxInfo::GetData()
|
||||||
mAdapterDescription.Append(nsDependentCString(buf));
|
mAdapterDescription.Append(nsDependentCString(buf));
|
||||||
mAdapterDescription.Append('\n');
|
mAdapterDescription.Append('\n');
|
||||||
}
|
}
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
CrashReporter::AppendAppNotesToCrashReport(mAdapterDescription);
|
CrashReporter::AppendAppNotesToCrashReport(mAdapterDescription);
|
||||||
#endif
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -194,9 +191,8 @@ GfxInfo::GetData()
|
||||||
if (mHasTextureFromPixmap)
|
if (mHasTextureFromPixmap)
|
||||||
note.AppendLiteral(" -- texture_from_pixmap");
|
note.AppendLiteral(" -- texture_from_pixmap");
|
||||||
note.Append('\n');
|
note.Append('\n');
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
CrashReporter::AppendAppNotesToCrashReport(note);
|
CrashReporter::AppendAppNotesToCrashReport(note);
|
||||||
#endif
|
|
||||||
|
|
||||||
// determine the major OpenGL version. That's the first integer in the version string.
|
// determine the major OpenGL version. That's the first integer in the version string.
|
||||||
mGLMajorVersion = strtol(mVersion.get(), 0, 10);
|
mGLMajorVersion = strtol(mVersion.get(), 0, 10);
|
||||||
|
|
|
||||||
|
|
@ -8,17 +8,15 @@
|
||||||
#include "GLContextProvider.h"
|
#include "GLContextProvider.h"
|
||||||
#include "nsUnicharUtils.h"
|
#include "nsUnicharUtils.h"
|
||||||
#include "prenv.h"
|
#include "prenv.h"
|
||||||
|
#include "nsExceptionHandler.h"
|
||||||
#include "nsHashKeys.h"
|
#include "nsHashKeys.h"
|
||||||
|
#include "nsICrashReporter.h"
|
||||||
#include "nsVersionComparator.h"
|
#include "nsVersionComparator.h"
|
||||||
#include "AndroidBridge.h"
|
#include "AndroidBridge.h"
|
||||||
#include "nsIWindowWatcher.h"
|
#include "nsIWindowWatcher.h"
|
||||||
#include "nsServiceManagerUtils.h"
|
#include "nsServiceManagerUtils.h"
|
||||||
|
|
||||||
#if defined(MOZ_CRASHREPORTER)
|
|
||||||
#include "nsExceptionHandler.h"
|
|
||||||
#include "nsICrashReporter.h"
|
|
||||||
#define NS_CRASHREPORTER_CONTRACTID "@mozilla.org/toolkit/crash-reporter;1"
|
#define NS_CRASHREPORTER_CONTRACTID "@mozilla.org/toolkit/crash-reporter;1"
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace widget {
|
namespace widget {
|
||||||
|
|
@ -350,7 +348,6 @@ GfxInfo::GetIsGPU2Active(bool* aIsGPU2Active)
|
||||||
void
|
void
|
||||||
GfxInfo::AddCrashReportAnnotations()
|
GfxInfo::AddCrashReportAnnotations()
|
||||||
{
|
{
|
||||||
#if defined(MOZ_CRASHREPORTER)
|
|
||||||
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterVendorID"),
|
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterVendorID"),
|
||||||
mGLStrings->Vendor());
|
mGLStrings->Vendor());
|
||||||
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterDeviceID"),
|
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AdapterDeviceID"),
|
||||||
|
|
@ -364,7 +361,6 @@ GfxInfo::AddCrashReportAnnotations()
|
||||||
note.AppendPrintf("AdapterDescription: '%s'\n", mAdapterDescription.get());
|
note.AppendPrintf("AdapterDescription: '%s'\n", mAdapterDescription.get());
|
||||||
|
|
||||||
CrashReporter::AppendAppNotesToCrashReport(note);
|
CrashReporter::AppendAppNotesToCrashReport(note);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const nsTArray<GfxDriverInfo>&
|
const nsTArray<GfxDriverInfo>&
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,7 @@
|
||||||
#include "GeneratedJNIWrappers.h"
|
#include "GeneratedJNIWrappers.h"
|
||||||
#include "AndroidBuild.h"
|
#include "AndroidBuild.h"
|
||||||
#include "nsAppShell.h"
|
#include "nsAppShell.h"
|
||||||
|
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
#include "nsExceptionHandler.h"
|
#include "nsExceptionHandler.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace jni {
|
namespace jni {
|
||||||
|
|
@ -206,7 +203,6 @@ bool ReportException(JNIEnv* aEnv, jthrowable aExc, jstring aStack)
|
||||||
{
|
{
|
||||||
bool result = true;
|
bool result = true;
|
||||||
|
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
result &= NS_SUCCEEDED(CrashReporter::AnnotateCrashReport(
|
result &= NS_SUCCEEDED(CrashReporter::AnnotateCrashReport(
|
||||||
NS_LITERAL_CSTRING("JavaStackTrace"),
|
NS_LITERAL_CSTRING("JavaStackTrace"),
|
||||||
String::Ref::From(aStack)->ToCString()));
|
String::Ref::From(aStack)->ToCString()));
|
||||||
|
|
@ -219,7 +215,6 @@ bool ReportException(JNIEnv* aEnv, jthrowable aExc, jstring aStack)
|
||||||
CrashReporter::AppendAppNotesToCrashReport(NS_LITERAL_CSTRING("\n") +
|
CrashReporter::AppendAppNotesToCrashReport(NS_LITERAL_CSTRING("\n") +
|
||||||
appNotes->ToCString());
|
appNotes->ToCString());
|
||||||
}
|
}
|
||||||
#endif // MOZ_CRASHREPORTER
|
|
||||||
|
|
||||||
if (sOOMErrorClass && aEnv->IsInstanceOf(aExc, sOOMErrorClass)) {
|
if (sOOMErrorClass && aEnv->IsInstanceOf(aExc, sOOMErrorClass)) {
|
||||||
NS_ABORT_OOM(0); // Unknown OOM size
|
NS_ABORT_OOM(0); // Unknown OOM size
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,13 @@
|
||||||
#include "base/message_loop.h"
|
#include "base/message_loop.h"
|
||||||
#include "base/task.h"
|
#include "base/task.h"
|
||||||
#include "mozilla/Hal.h"
|
#include "mozilla/Hal.h"
|
||||||
|
#include "nsExceptionHandler.h"
|
||||||
#include "nsIScreen.h"
|
#include "nsIScreen.h"
|
||||||
#include "nsIScreenManager.h"
|
#include "nsIScreenManager.h"
|
||||||
#include "nsWindow.h"
|
#include "nsWindow.h"
|
||||||
#include "nsThreadUtils.h"
|
#include "nsThreadUtils.h"
|
||||||
#include "nsICommandLineRunner.h"
|
#include "nsICommandLineRunner.h"
|
||||||
|
#include "nsICrashReporter.h"
|
||||||
#include "nsIObserverService.h"
|
#include "nsIObserverService.h"
|
||||||
#include "nsIAppStartup.h"
|
#include "nsIAppStartup.h"
|
||||||
#include "nsIGeolocationProvider.h"
|
#include "nsIGeolocationProvider.h"
|
||||||
|
|
@ -58,11 +60,6 @@
|
||||||
#include "mozilla/Logging.h"
|
#include "mozilla/Logging.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
#include "nsICrashReporter.h"
|
|
||||||
#include "nsExceptionHandler.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "AndroidAlerts.h"
|
#include "AndroidAlerts.h"
|
||||||
#include "AndroidUiThread.h"
|
#include "AndroidUiThread.h"
|
||||||
#include "ANRReporter.h"
|
#include "ANRReporter.h"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,9 @@
|
||||||
|
|
||||||
#include "GfxInfo.h"
|
#include "GfxInfo.h"
|
||||||
#include "nsUnicharUtils.h"
|
#include "nsUnicharUtils.h"
|
||||||
|
#include "nsExceptionHandler.h"
|
||||||
#include "nsCocoaFeatures.h"
|
#include "nsCocoaFeatures.h"
|
||||||
|
#include "nsICrashReporter.h"
|
||||||
#include "mozilla/Preferences.h"
|
#include "mozilla/Preferences.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
|
@ -18,11 +20,7 @@
|
||||||
#import <IOKit/IOKitLib.h>
|
#import <IOKit/IOKitLib.h>
|
||||||
#import <Cocoa/Cocoa.h>
|
#import <Cocoa/Cocoa.h>
|
||||||
|
|
||||||
#if defined(MOZ_CRASHREPORTER)
|
|
||||||
#include "nsExceptionHandler.h"
|
|
||||||
#include "nsICrashReporter.h"
|
|
||||||
#define NS_CRASHREPORTER_CONTRACTID "@mozilla.org/toolkit/crash-reporter;1"
|
#define NS_CRASHREPORTER_CONTRACTID "@mozilla.org/toolkit/crash-reporter;1"
|
||||||
#endif
|
|
||||||
|
|
||||||
using namespace mozilla;
|
using namespace mozilla;
|
||||||
using namespace mozilla::widget;
|
using namespace mozilla::widget;
|
||||||
|
|
@ -275,7 +273,6 @@ GfxInfo::GetIsGPU2Active(bool* aIsGPU2Active)
|
||||||
void
|
void
|
||||||
GfxInfo::AddCrashReportAnnotations()
|
GfxInfo::AddCrashReportAnnotations()
|
||||||
{
|
{
|
||||||
#if defined(MOZ_CRASHREPORTER)
|
|
||||||
nsString deviceID, vendorID, driverVersion;
|
nsString deviceID, vendorID, driverVersion;
|
||||||
nsAutoCString narrowDeviceID, narrowVendorID, narrowDriverVersion;
|
nsAutoCString narrowDeviceID, narrowVendorID, narrowDriverVersion;
|
||||||
|
|
||||||
|
|
@ -301,7 +298,6 @@ GfxInfo::AddCrashReportAnnotations()
|
||||||
note.AppendLiteral(", AdapterDeviceID: ");
|
note.AppendLiteral(", AdapterDeviceID: ");
|
||||||
note.Append(narrowDeviceID);
|
note.Append(narrowDeviceID);
|
||||||
CrashReporter::AppendAppNotesToCrashReport(note);
|
CrashReporter::AppendAppNotesToCrashReport(note);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// We don't support checking driver versions on Mac.
|
// We don't support checking driver versions on Mac.
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
#include "mozilla/TouchEvents.h"
|
#include "mozilla/TouchEvents.h"
|
||||||
|
|
||||||
#include "nsArrayUtils.h"
|
#include "nsArrayUtils.h"
|
||||||
|
#include "nsExceptionHandler.h"
|
||||||
#include "nsObjCExceptions.h"
|
#include "nsObjCExceptions.h"
|
||||||
#include "nsCOMPtr.h"
|
#include "nsCOMPtr.h"
|
||||||
#include "nsThreadUtils.h"
|
#include "nsThreadUtils.h"
|
||||||
|
|
@ -83,9 +84,6 @@
|
||||||
#include "nsAccessibilityService.h"
|
#include "nsAccessibilityService.h"
|
||||||
#include "mozilla/a11y/Platform.h"
|
#include "mozilla/a11y/Platform.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
#include "nsExceptionHandler.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "mozilla/Preferences.h"
|
#include "mozilla/Preferences.h"
|
||||||
|
|
||||||
|
|
@ -5519,31 +5517,30 @@ GetIntegerDeltaForEvent(NSEvent* aEvent)
|
||||||
#if !defined(RELEASE_OR_BETA) || defined(DEBUG)
|
#if !defined(RELEASE_OR_BETA) || defined(DEBUG)
|
||||||
if (!Preferences::GetBool("intl.allow-insecure-text-input", false) &&
|
if (!Preferences::GetBool("intl.allow-insecure-text-input", false) &&
|
||||||
mGeckoChild && mTextInputHandler && mTextInputHandler->IsFocused()) {
|
mGeckoChild && mTextInputHandler && mTextInputHandler->IsFocused()) {
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
NSWindow* window = [self window];
|
NSWindow* window = [self window];
|
||||||
NSString* info = [NSString stringWithFormat:@"\nview [%@], window [%@], window is key %i, is fullscreen %i, app is active %i",
|
NSString* info = [NSString stringWithFormat:@"\nview [%@], window [%@], window is key %i, is fullscreen %i, app is active %i",
|
||||||
self, window, [window isKeyWindow], ([window styleMask] & (1 << 14)) != 0,
|
self, window, [window isKeyWindow], ([window styleMask] & (1 << 14)) != 0,
|
||||||
[NSApp isActive]];
|
[NSApp isActive]];
|
||||||
nsAutoCString additionalInfo([info UTF8String]);
|
nsAutoCString additionalInfo([info UTF8String]);
|
||||||
#endif
|
|
||||||
if (mGeckoChild->GetInputContext().IsPasswordEditor() &&
|
if (mGeckoChild->GetInputContext().IsPasswordEditor() &&
|
||||||
!TextInputHandler::IsSecureEventInputEnabled()) {
|
!TextInputHandler::IsSecureEventInputEnabled()) {
|
||||||
#define CRASH_MESSAGE "A password editor has focus, but not in secure input mode"
|
#define CRASH_MESSAGE "A password editor has focus, but not in secure input mode"
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
CrashReporter::AppendAppNotesToCrashReport(NS_LITERAL_CSTRING("\nBug 893973: ") +
|
CrashReporter::AppendAppNotesToCrashReport(NS_LITERAL_CSTRING("\nBug 893973: ") +
|
||||||
NS_LITERAL_CSTRING(CRASH_MESSAGE));
|
NS_LITERAL_CSTRING(CRASH_MESSAGE));
|
||||||
CrashReporter::AppendAppNotesToCrashReport(additionalInfo);
|
CrashReporter::AppendAppNotesToCrashReport(additionalInfo);
|
||||||
#endif
|
|
||||||
MOZ_CRASH(CRASH_MESSAGE);
|
MOZ_CRASH(CRASH_MESSAGE);
|
||||||
#undef CRASH_MESSAGE
|
#undef CRASH_MESSAGE
|
||||||
} else if (!mGeckoChild->GetInputContext().IsPasswordEditor() &&
|
} else if (!mGeckoChild->GetInputContext().IsPasswordEditor() &&
|
||||||
TextInputHandler::IsSecureEventInputEnabled()) {
|
TextInputHandler::IsSecureEventInputEnabled()) {
|
||||||
#define CRASH_MESSAGE "A non-password editor has focus, but in secure input mode"
|
#define CRASH_MESSAGE "A non-password editor has focus, but in secure input mode"
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
CrashReporter::AppendAppNotesToCrashReport(NS_LITERAL_CSTRING("\nBug 893973: ") +
|
CrashReporter::AppendAppNotesToCrashReport(NS_LITERAL_CSTRING("\nBug 893973: ") +
|
||||||
NS_LITERAL_CSTRING(CRASH_MESSAGE));
|
NS_LITERAL_CSTRING(CRASH_MESSAGE));
|
||||||
CrashReporter::AppendAppNotesToCrashReport(additionalInfo);
|
CrashReporter::AppendAppNotesToCrashReport(additionalInfo);
|
||||||
#endif
|
|
||||||
MOZ_CRASH(CRASH_MESSAGE);
|
MOZ_CRASH(CRASH_MESSAGE);
|
||||||
#undef CRASH_MESSAGE
|
#undef CRASH_MESSAGE
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,7 @@
|
||||||
#include "base/message_loop.h"
|
#include "base/message_loop.h"
|
||||||
|
|
||||||
#include "nsBaseAppShell.h"
|
#include "nsBaseAppShell.h"
|
||||||
#if defined(MOZ_CRASHREPORTER)
|
|
||||||
#include "nsExceptionHandler.h"
|
#include "nsExceptionHandler.h"
|
||||||
#endif
|
|
||||||
#include "nsThreadUtils.h"
|
#include "nsThreadUtils.h"
|
||||||
#include "nsIObserverService.h"
|
#include "nsIObserverService.h"
|
||||||
#include "nsServiceManagerUtils.h"
|
#include "nsServiceManagerUtils.h"
|
||||||
|
|
@ -320,18 +318,14 @@ void
|
||||||
nsBaseAppShell::IncrementEventloopNestingLevel()
|
nsBaseAppShell::IncrementEventloopNestingLevel()
|
||||||
{
|
{
|
||||||
++mEventloopNestingLevel;
|
++mEventloopNestingLevel;
|
||||||
#if defined(MOZ_CRASHREPORTER)
|
|
||||||
CrashReporter::SetEventloopNestingLevel(mEventloopNestingLevel);
|
CrashReporter::SetEventloopNestingLevel(mEventloopNestingLevel);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
nsBaseAppShell::DecrementEventloopNestingLevel()
|
nsBaseAppShell::DecrementEventloopNestingLevel()
|
||||||
{
|
{
|
||||||
--mEventloopNestingLevel;
|
--mEventloopNestingLevel;
|
||||||
#if defined(MOZ_CRASHREPORTER)
|
|
||||||
CrashReporter::SetEventloopNestingLevel(mEventloopNestingLevel);
|
CrashReporter::SetEventloopNestingLevel(mEventloopNestingLevel);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called from the main thread
|
// Called from the main thread
|
||||||
|
|
|
||||||
|
|
@ -18,15 +18,13 @@
|
||||||
#include "mozilla/Preferences.h"
|
#include "mozilla/Preferences.h"
|
||||||
#include "mozilla/gfx/DeviceManagerDx.h"
|
#include "mozilla/gfx/DeviceManagerDx.h"
|
||||||
#include "mozilla/gfx/Logging.h"
|
#include "mozilla/gfx/Logging.h"
|
||||||
|
#include "nsExceptionHandler.h"
|
||||||
|
#include "nsICrashReporter.h"
|
||||||
#include "nsPrintfCString.h"
|
#include "nsPrintfCString.h"
|
||||||
#include "jsapi.h"
|
#include "jsapi.h"
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
|
|
||||||
#if defined(MOZ_CRASHREPORTER)
|
|
||||||
#include "nsExceptionHandler.h"
|
|
||||||
#include "nsICrashReporter.h"
|
|
||||||
#define NS_CRASHREPORTER_CONTRACTID "@mozilla.org/toolkit/crash-reporter;1"
|
#define NS_CRASHREPORTER_CONTRACTID "@mozilla.org/toolkit/crash-reporter;1"
|
||||||
#endif
|
|
||||||
|
|
||||||
using namespace mozilla;
|
using namespace mozilla;
|
||||||
using namespace mozilla::gfx;
|
using namespace mozilla::gfx;
|
||||||
|
|
@ -854,7 +852,6 @@ GfxInfo::GetIsGPU2Active(bool* aIsGPU2Active)
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MOZ_CRASHREPORTER)
|
|
||||||
/* Cisco's VPN software can cause corruption of the floating point state.
|
/* Cisco's VPN software can cause corruption of the floating point state.
|
||||||
* Make a note of this in our crash reports so that some weird crashes
|
* Make a note of this in our crash reports so that some weird crashes
|
||||||
* make more sense */
|
* make more sense */
|
||||||
|
|
@ -869,12 +866,10 @@ CheckForCiscoVPN() {
|
||||||
CrashReporter::AppendAppNotesToCrashReport(NS_LITERAL_CSTRING("Cisco VPN\n"));
|
CrashReporter::AppendAppNotesToCrashReport(NS_LITERAL_CSTRING("Cisco VPN\n"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
void
|
void
|
||||||
GfxInfo::AddCrashReportAnnotations()
|
GfxInfo::AddCrashReportAnnotations()
|
||||||
{
|
{
|
||||||
#if defined(MOZ_CRASHREPORTER)
|
|
||||||
CheckForCiscoVPN();
|
CheckForCiscoVPN();
|
||||||
|
|
||||||
if (mHasDriverVersionMismatch) {
|
if (mHasDriverVersionMismatch) {
|
||||||
|
|
@ -954,8 +949,6 @@ GfxInfo::AddCrashReportAnnotations()
|
||||||
note.Append(NS_LossyConvertUTF16toASCII(adapterDriverVersionString2));
|
note.Append(NS_LossyConvertUTF16toASCII(adapterDriverVersionString2));
|
||||||
}
|
}
|
||||||
CrashReporter::AppendAppNotesToCrashReport(note);
|
CrashReporter::AppendAppNotesToCrashReport(note);
|
||||||
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static OperatingSystem
|
static OperatingSystem
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,7 @@
|
||||||
#include "mozilla/TextEvents.h"
|
#include "mozilla/TextEvents.h"
|
||||||
|
|
||||||
#include "nsAlgorithm.h"
|
#include "nsAlgorithm.h"
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
#include "nsExceptionHandler.h"
|
#include "nsExceptionHandler.h"
|
||||||
#endif
|
|
||||||
#include "nsGkAtoms.h"
|
#include "nsGkAtoms.h"
|
||||||
#include "nsIIdleServiceInternal.h"
|
#include "nsIIdleServiceInternal.h"
|
||||||
#include "nsIWindowsRegKey.h"
|
#include "nsIWindowsRegKey.h"
|
||||||
|
|
@ -2696,8 +2694,6 @@ NativeKey::NeedsToHandleWithoutFollowingCharMessages() const
|
||||||
return mIsPrintableKey;
|
return mIsPrintableKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
|
|
||||||
static nsCString
|
static nsCString
|
||||||
GetResultOfInSendMessageEx()
|
GetResultOfInSendMessageEx()
|
||||||
{
|
{
|
||||||
|
|
@ -2730,8 +2726,6 @@ GetResultOfInSendMessageEx()
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // #ifdef MOZ_CRASHREPORTER
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
NativeKey::MayBeSameCharMessage(const MSG& aCharMsg1,
|
NativeKey::MayBeSameCharMessage(const MSG& aCharMsg1,
|
||||||
const MSG& aCharMsg2) const
|
const MSG& aCharMsg2) const
|
||||||
|
|
@ -2975,7 +2969,6 @@ NativeKey::GetFollowingCharMessage(MSG& aCharMsg)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (doCrash) {
|
if (doCrash) {
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
nsPrintfCString info("\nPeekMessage() failed to remove char message! "
|
nsPrintfCString info("\nPeekMessage() failed to remove char message! "
|
||||||
"\nActive keyboard layout=0x%08X (%s), "
|
"\nActive keyboard layout=0x%08X (%s), "
|
||||||
"\nHandling message: %s, InSendMessageEx()=%s, "
|
"\nHandling message: %s, InSendMessageEx()=%s, "
|
||||||
|
|
@ -3001,7 +2994,7 @@ NativeKey::GetFollowingCharMessage(MSG& aCharMsg)
|
||||||
CrashReporter::AppendAppNotesToCrashReport(
|
CrashReporter::AppendAppNotesToCrashReport(
|
||||||
NS_LITERAL_CSTRING("\nThere is no message in any window"));
|
NS_LITERAL_CSTRING("\nThere is no message in any window"));
|
||||||
}
|
}
|
||||||
#endif // #ifdef MOZ_CRASHREPORTER
|
|
||||||
MOZ_CRASH("We lost the following char message");
|
MOZ_CRASH("We lost the following char message");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -3120,7 +3113,6 @@ NativeKey::GetFollowingCharMessage(MSG& aCharMsg)
|
||||||
"nextKeyMsg=%s, kFoundCharMsg=%s",
|
"nextKeyMsg=%s, kFoundCharMsg=%s",
|
||||||
this, ToString(removedMsg).get(), ToString(nextKeyMsg).get(),
|
this, ToString(removedMsg).get(), ToString(nextKeyMsg).get(),
|
||||||
ToString(kFoundCharMsg).get()));
|
ToString(kFoundCharMsg).get()));
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
nsPrintfCString info("\nPeekMessage() removed unexpcted char message! "
|
nsPrintfCString info("\nPeekMessage() removed unexpcted char message! "
|
||||||
"\nActive keyboard layout=0x%08X (%s), "
|
"\nActive keyboard layout=0x%08X (%s), "
|
||||||
"\nHandling message: %s, InSendMessageEx()=%s, "
|
"\nHandling message: %s, InSendMessageEx()=%s, "
|
||||||
|
|
@ -3158,14 +3150,13 @@ NativeKey::GetFollowingCharMessage(MSG& aCharMsg)
|
||||||
CrashReporter::AppendAppNotesToCrashReport(
|
CrashReporter::AppendAppNotesToCrashReport(
|
||||||
NS_LITERAL_CSTRING("\nThere is no key message in any windows."));
|
NS_LITERAL_CSTRING("\nThere is no key message in any windows."));
|
||||||
}
|
}
|
||||||
#endif // #ifdef MOZ_CRASHREPORTER
|
|
||||||
MOZ_CRASH("PeekMessage() removed unexpected message");
|
MOZ_CRASH("PeekMessage() removed unexpected message");
|
||||||
}
|
}
|
||||||
MOZ_LOG(sNativeKeyLogger, LogLevel::Error,
|
MOZ_LOG(sNativeKeyLogger, LogLevel::Error,
|
||||||
("%p NativeKey::GetFollowingCharMessage(), FAILED, removed messages "
|
("%p NativeKey::GetFollowingCharMessage(), FAILED, removed messages "
|
||||||
"are all WM_NULL, nextKeyMsg=%s",
|
"are all WM_NULL, nextKeyMsg=%s",
|
||||||
this, ToString(nextKeyMsg).get()));
|
this, ToString(nextKeyMsg).get()));
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
nsPrintfCString info("\nWe lost following char message! "
|
nsPrintfCString info("\nWe lost following char message! "
|
||||||
"\nActive keyboard layout=0x%08X (%s), "
|
"\nActive keyboard layout=0x%08X (%s), "
|
||||||
"\nHandling message: %s, InSendMessageEx()=%s, \n"
|
"\nHandling message: %s, InSendMessageEx()=%s, \n"
|
||||||
|
|
@ -3176,7 +3167,6 @@ NativeKey::GetFollowingCharMessage(MSG& aCharMsg)
|
||||||
GetResultOfInSendMessageEx().get(),
|
GetResultOfInSendMessageEx().get(),
|
||||||
ToString(kFoundCharMsg).get());
|
ToString(kFoundCharMsg).get());
|
||||||
CrashReporter::AppendAppNotesToCrashReport(info);
|
CrashReporter::AppendAppNotesToCrashReport(info);
|
||||||
#endif // #ifdef MOZ_CRASHREPORTER
|
|
||||||
MOZ_CRASH("We lost the following char message");
|
MOZ_CRASH("We lost the following char message");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ UNIFIED_SOURCES += [
|
||||||
'InProcessWinCompositorWidget.cpp',
|
'InProcessWinCompositorWidget.cpp',
|
||||||
'JumpListItem.cpp',
|
'JumpListItem.cpp',
|
||||||
'KeyboardLayout.cpp',
|
'KeyboardLayout.cpp',
|
||||||
|
'LSPAnnotator.cpp',
|
||||||
'nsAppShell.cpp',
|
'nsAppShell.cpp',
|
||||||
'nsClipboard.cpp',
|
'nsClipboard.cpp',
|
||||||
'nsColorPicker.cpp',
|
'nsColorPicker.cpp',
|
||||||
|
|
@ -87,11 +88,6 @@ SOURCES += [
|
||||||
'WinMouseScrollHandler.cpp',
|
'WinMouseScrollHandler.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
if CONFIG['MOZ_CRASHREPORTER']:
|
|
||||||
UNIFIED_SOURCES += [
|
|
||||||
'LSPAnnotator.cpp',
|
|
||||||
]
|
|
||||||
|
|
||||||
if CONFIG['NS_PRINTING']:
|
if CONFIG['NS_PRINTING']:
|
||||||
UNIFIED_SOURCES += [
|
UNIFIED_SOURCES += [
|
||||||
'nsDeviceContextSpecWin.cpp',
|
'nsDeviceContextSpecWin.cpp',
|
||||||
|
|
|
||||||
|
|
@ -164,9 +164,7 @@ nsAppShell::~nsAppShell()
|
||||||
nsresult
|
nsresult
|
||||||
nsAppShell::Init()
|
nsAppShell::Init()
|
||||||
{
|
{
|
||||||
#ifdef MOZ_CRASHREPORTER
|
|
||||||
LSPAnnotate();
|
LSPAnnotate();
|
||||||
#endif
|
|
||||||
|
|
||||||
mLastNativeEventScheduled = TimeStamp::NowLoRes();
|
mLastNativeEventScheduled = TimeStamp::NowLoRes();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue