Bug 1128454 - When plugin bridging mysteriously fails, log the ipc channel state along with the nsresult error code. r=billm

This commit is contained in:
Jim Mathies
2015-07-15 14:47:14 -05:00
parent ad24d1e5a6
commit 4180ebe4dd
2 changed files with 6 additions and 1 deletions

View File

@@ -135,7 +135,7 @@ mozilla::plugins::SetupBridge(uint32_t aPluginId,
// We are going to abort due to the failure, lets note the cause
// in the report for diagnosing.
nsAutoCString error;
error.AppendPrintf("%X", *rv);
error.AppendPrintf("%X %d", *rv, chromeParent->GetIPCChannel()->GetChannelState__TotallyRacy());
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("BridgePluginError"), error);
#endif
return false;