Bug 1137025 - Add a telemetry probe to see how often Window.showModalDialog is used. r=jst, a=me

This commit is contained in:
Blake Kaplan 2015-02-25 17:41:00 -05:00
parent 4a533d3199
commit e2af5cf422
2 changed files with 7 additions and 0 deletions

View File

@ -9184,6 +9184,8 @@ nsGlobalWindow::ShowModalDialog(const nsAString& aUrl, nsIVariant* aArgument,
return nullptr;
}
Telemetry::Accumulate(Telemetry::DOM_WINDOW_SHOWMODALDIALOG_USED, true);
nsRefPtr<DialogValueHolder> argHolder =
new DialogValueHolder(nsContentUtils::SubjectPrincipal(), aArgument);

View File

@ -4168,6 +4168,11 @@
"kind": "boolean",
"description": "DOM: Ranges that are detached on destruction (bug 702948)"
},
"DOM_WINDOW_SHOWMODALDIALOG_USED": {
"expires_in_version": "41",
"kind": "flag",
"description": "Whether Window.showModalDialog was used in this session"
},
"LOCALDOMSTORAGE_INIT_DATABASE_MS": {
"expires_in_version": "40",
"kind": "exponential",