зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset d6df8807c839 (bug 1155908) for bustage
This commit is contained in:
Родитель
6afb396da3
Коммит
8f421f43e9
|
@ -1112,17 +1112,26 @@ PluginModuleChromeParent::AnnotateHang(mozilla::HangMonitor::HangAnnotations& aA
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef MOZ_CRASHREPORTER_INJECTOR
|
||||
static bool
|
||||
CreatePluginMinidump(base::ProcessId processId, ThreadId childThread,
|
||||
nsIFile* parentMinidump, const nsACString& name)
|
||||
CreateFlashMinidump(DWORD processId, ThreadId childThread,
|
||||
nsIFile* parentMinidump, const nsACString& name)
|
||||
{
|
||||
mozilla::ipc::ScopedProcessHandle handle;
|
||||
if (processId == 0 ||
|
||||
!base::OpenPrivilegedProcessHandle(processId, &handle.rwget())) {
|
||||
if (processId == 0) {
|
||||
return false;
|
||||
}
|
||||
return CreateAdditionalChildMinidump(handle, 0, parentMinidump, name);
|
||||
|
||||
base::ProcessHandle handle;
|
||||
if (!base::OpenPrivilegedProcessHandle(processId, &handle)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool res = CreateAdditionalChildMinidump(handle, 0, parentMinidump, name);
|
||||
base::CloseProcessHandle(handle);
|
||||
|
||||
return res;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool
|
||||
PluginModuleChromeParent::ShouldContinueFromReplyTimeout()
|
||||
|
@ -1192,37 +1201,32 @@ PluginModuleChromeParent::TerminateChildProcess(MessageLoop* aMsgLoop)
|
|||
}
|
||||
}
|
||||
#endif // XP_WIN
|
||||
// Generate base report, includes plugin and browser process minidumps.
|
||||
if (crashReporter->GeneratePairedMinidump(this)) {
|
||||
mPluginDumpID = crashReporter->ChildDumpID();
|
||||
PLUGIN_LOG_DEBUG(
|
||||
("generated paired browser/plugin minidumps: %s)",
|
||||
NS_ConvertUTF16toUTF8(mPluginDumpID).get()));
|
||||
|
||||
nsAutoCString additionalDumps("browser");
|
||||
|
||||
#ifdef MOZ_CRASHREPORTER_INJECTOR
|
||||
nsCOMPtr<nsIFile> pluginDumpFile;
|
||||
|
||||
if (GetMinidumpForID(mPluginDumpID, getter_AddRefs(pluginDumpFile)) &&
|
||||
pluginDumpFile) {
|
||||
#ifdef MOZ_CRASHREPORTER_INJECTOR
|
||||
// If we have handles to the flash sandbox processes on Windows,
|
||||
// include those minidumps as well.
|
||||
if (CreatePluginMinidump(mFlashProcess1, 0, pluginDumpFile,
|
||||
NS_LITERAL_CSTRING("flash1"))) {
|
||||
additionalDumps.AppendLiteral(",flash1");
|
||||
}
|
||||
if (CreatePluginMinidump(mFlashProcess2, 0, pluginDumpFile,
|
||||
NS_LITERAL_CSTRING("flash2"))) {
|
||||
additionalDumps.AppendLiteral(",flash2");
|
||||
}
|
||||
#endif
|
||||
if (mContentParent) {
|
||||
// Include the content process minidump
|
||||
if (CreatePluginMinidump(mContentParent->OtherPid(), 0,
|
||||
pluginDumpFile,
|
||||
NS_LITERAL_CSTRING("content"))) {
|
||||
additionalDumps.AppendLiteral(",content");
|
||||
}
|
||||
}
|
||||
nsCOMPtr<nsIFile> childDumpFile;
|
||||
|
||||
if (CreateFlashMinidump(mFlashProcess1, 0, pluginDumpFile,
|
||||
NS_LITERAL_CSTRING("flash1"))) {
|
||||
additionalDumps.AppendLiteral(",flash1");
|
||||
}
|
||||
if (CreateFlashMinidump(mFlashProcess2, 0, pluginDumpFile,
|
||||
NS_LITERAL_CSTRING("flash2"))) {
|
||||
additionalDumps.AppendLiteral(",flash2");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
crashReporter->AnnotateCrashReport(
|
||||
NS_LITERAL_CSTRING("additional_minidumps"),
|
||||
additionalDumps);
|
||||
|
|
Загрузка…
Ссылка в новой задаче