mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +09:00
parent
ad8dedfc91
commit
4f9e1b3147
12 changed files with 1 additions and 502 deletions
|
|
@ -10,7 +10,6 @@
|
|||
#include "nsDirectoryServiceDefs.h"
|
||||
#include "nsDataHashtable.h"
|
||||
#include "mozilla/ArrayUtils.h"
|
||||
#include "mozilla/ipc/CrashReporterClient.h"
|
||||
#include "mozilla/Services.h"
|
||||
#include "nsIObserverService.h"
|
||||
#include "mozilla/Unused.h"
|
||||
|
|
@ -114,8 +113,6 @@ using google_breakpad::FileID;
|
|||
using google_breakpad::PageAllocator;
|
||||
#endif
|
||||
using namespace mozilla;
|
||||
using mozilla::dom::CrashReporterChild;
|
||||
using mozilla::ipc::CrashReporterClient;
|
||||
|
||||
namespace CrashReporter {
|
||||
|
||||
|
|
@ -2231,13 +2228,7 @@ nsresult AnnotateCrashReport(const nsACString& key, const nsACString& data)
|
|||
return rv;
|
||||
|
||||
if (!XRE_IsParentProcess()) {
|
||||
// The newer CrashReporterClient can be used from any thread.
|
||||
if (RefPtr<CrashReporterClient> client = CrashReporterClient::GetSingleton()) {
|
||||
client->AnnotateCrashReport(nsCString(key), escapedData);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// Otherwise, we have to handle this on the main thread since we will go
|
||||
// We have to handle this on the main thread since we will go
|
||||
// through IPDL.
|
||||
if (!NS_IsMainThread()) {
|
||||
// Child process needs to handle this in the main thread:
|
||||
|
|
@ -2313,11 +2304,6 @@ nsresult AppendAppNotesToCrashReport(const nsACString& data)
|
|||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
if (RefPtr<CrashReporterClient> client = CrashReporterClient::GetSingleton()) {
|
||||
client->AppendAppNotes(escapedData);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if (!NS_IsMainThread()) {
|
||||
// Child process needs to handle this in the main thread:
|
||||
nsCOMPtr<nsIRunnable> r = new CrashReporterHelperRunnable(data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue