Bug 1177013 - Telemetry for CPOW cancelation (r=dvander)
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
#include "mozilla/DebugOnly.h"
|
#include "mozilla/DebugOnly.h"
|
||||||
#include "mozilla/Move.h"
|
#include "mozilla/Move.h"
|
||||||
#include "mozilla/SizePrintfMacros.h"
|
#include "mozilla/SizePrintfMacros.h"
|
||||||
|
#include "mozilla/Telemetry.h"
|
||||||
#include "nsDebug.h"
|
#include "nsDebug.h"
|
||||||
#include "nsISupportsImpl.h"
|
#include "nsISupportsImpl.h"
|
||||||
#include "nsContentUtils.h"
|
#include "nsContentUtils.h"
|
||||||
@@ -2040,6 +2041,7 @@ void
|
|||||||
CancelCPOWs()
|
CancelCPOWs()
|
||||||
{
|
{
|
||||||
if (gParentProcessBlocker) {
|
if (gParentProcessBlocker) {
|
||||||
|
mozilla::Telemetry::Accumulate(mozilla::Telemetry::IPC_TRANSACTION_CANCEL, true);
|
||||||
gParentProcessBlocker->CancelCurrentTransaction();
|
gParentProcessBlocker->CancelCurrentTransaction();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4843,6 +4843,12 @@
|
|||||||
"keyed" : true,
|
"keyed" : true,
|
||||||
"description" : "Exceptions thrown by add-ons"
|
"description" : "Exceptions thrown by add-ons"
|
||||||
},
|
},
|
||||||
|
"IPC_TRANSACTION_CANCEL": {
|
||||||
|
"alert_emails": ["billm@mozilla.com"],
|
||||||
|
"expires_in_version": "never",
|
||||||
|
"kind": "boolean",
|
||||||
|
"description": "True when an IPC transaction is canceled"
|
||||||
|
},
|
||||||
"MISBEHAVING_ADDONS_CPOW_TIME_MS": {
|
"MISBEHAVING_ADDONS_CPOW_TIME_MS": {
|
||||||
"expires_in_version": "never",
|
"expires_in_version": "never",
|
||||||
"kind": "exponential",
|
"kind": "exponential",
|
||||||
|
|||||||
Reference in New Issue
Block a user