mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
Remove base conditional code for crash reporter and injector.
This commit is contained in:
parent
87fa26d31e
commit
434f3590e3
131 changed files with 39 additions and 4139 deletions
|
|
@ -26,10 +26,6 @@
|
|||
#include "nsWindowsHelpers.h"
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
#include "nsExceptionHandler.h"
|
||||
#endif
|
||||
|
||||
class nsIProfileSaveEvent;
|
||||
class nsPluginTag;
|
||||
|
||||
|
|
@ -56,9 +52,6 @@ class PluginInstanceParent;
|
|||
#ifdef XP_WIN
|
||||
class PluginHangUIParent;
|
||||
#endif
|
||||
#ifdef MOZ_CRASHREPORTER_INJECTOR
|
||||
class FinishInjectorInitTask;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* PluginModuleParent
|
||||
|
|
@ -80,9 +73,6 @@ class FinishInjectorInitTask;
|
|||
class PluginModuleParent
|
||||
: public PPluginModuleParent
|
||||
, public PluginLibrary
|
||||
#ifdef MOZ_CRASHREPORTER_INJECTOR
|
||||
, public CrashReporter::InjectorCrashCallback
|
||||
#endif
|
||||
{
|
||||
protected:
|
||||
typedef mozilla::PluginLibrary PluginLibrary;
|
||||
|
|
@ -395,10 +385,6 @@ class PluginModuleContentParent : public PluginModuleParent
|
|||
virtual bool ShouldContinueFromReplyTimeout() override;
|
||||
virtual void OnExitedSyncSend() override;
|
||||
|
||||
#ifdef MOZ_CRASHREPORTER_INJECTOR
|
||||
void OnCrash(DWORD processID) override {}
|
||||
#endif
|
||||
|
||||
static PluginModuleContentParent* sSavedModuleParent;
|
||||
|
||||
uint32_t mPluginId;
|
||||
|
|
@ -522,11 +508,6 @@ private:
|
|||
|
||||
virtual bool ShouldContinueFromReplyTimeout() override;
|
||||
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
void ProcessFirstMinidump();
|
||||
void WriteExtraDataForMinidump(CrashReporter::AnnotationTable& notes);
|
||||
#endif
|
||||
|
||||
virtual PCrashReporterParent*
|
||||
AllocPCrashReporterParent(mozilla::dom::NativeThreadId* id,
|
||||
uint32_t* processType) override;
|
||||
|
|
@ -594,17 +575,6 @@ private:
|
|||
PluginHangUIParent *mHangUIParent;
|
||||
bool mHangUIEnabled;
|
||||
bool mIsTimerReset;
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
/**
|
||||
* This mutex protects the crash reporter when the Plugin Hang UI event
|
||||
* handler is executing off main thread. It is intended to protect both
|
||||
* the mCrashReporter variable in addition to the CrashReporterParent object
|
||||
* that mCrashReporter refers to.
|
||||
*/
|
||||
mozilla::Mutex mCrashReporterMutex;
|
||||
CrashReporterParent* mCrashReporter;
|
||||
#endif // MOZ_CRASHREPORTER
|
||||
|
||||
|
||||
/**
|
||||
* Launches the Plugin Hang UI.
|
||||
|
|
@ -626,20 +596,6 @@ private:
|
|||
friend class mozilla::dom::CrashReporterParent;
|
||||
friend class mozilla::plugins::PluginAsyncSurrogate;
|
||||
|
||||
#ifdef MOZ_CRASHREPORTER_INJECTOR
|
||||
friend class mozilla::plugins::FinishInjectorInitTask;
|
||||
|
||||
void InitializeInjector();
|
||||
void DoInjection(const nsAutoHandle& aSnapshot);
|
||||
static DWORD WINAPI GetToolhelpSnapshot(LPVOID aContext);
|
||||
|
||||
void OnCrash(DWORD processID) override;
|
||||
|
||||
DWORD mFlashProcess1;
|
||||
DWORD mFlashProcess2;
|
||||
RefPtr<mozilla::plugins::FinishInjectorInitTask> mFinishInitTask;
|
||||
#endif
|
||||
|
||||
void OnProcessLaunched(const bool aSucceeded);
|
||||
|
||||
class LaunchedTask : public LaunchCompleteTask
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue