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
Родитель 4a533d3199
Коммит e2af5cf422
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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);

Просмотреть файл

@ -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",