mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Bug 1137025 - Add a telemetry probe to see how often Window.showModalDialog is used. r=jst, a=me
This commit is contained in:
parent
4a533d3199
commit
e2af5cf422
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user