diff --git a/toolkit/components/passwordmgr/content/passwordManager.js b/toolkit/components/passwordmgr/content/passwordManager.js index 81e93f6ce9c0..e82237f54844 100644 --- a/toolkit/components/passwordmgr/content/passwordManager.js +++ b/toolkit/components/passwordmgr/content/passwordManager.js @@ -26,8 +26,12 @@ function SignonsStartup() { // filter the table if requested by caller if (window.arguments && window.arguments[0] && - window.arguments[0].filterString) + window.arguments[0].filterString) { setFilter(window.arguments[0].filterString); + Services.telemetry.getHistogramById("PWMGR_MANAGE_OPENED").add(1); + } else { + Services.telemetry.getHistogramById("PWMGR_MANAGE_OPENED").add(0); + } FocusFilterBox(); } @@ -154,6 +158,7 @@ function DeleteAllSignons() { signonsTreeView._filterSet.length ? signonsTreeView._filterSet : signons, deletedSignons, "removeSignon", "removeAllSignons"); FinalizeSignonDeletions(syncNeeded); + Services.telemetry.getHistogramById("PWMGR_MANAGE_DELETED_ALL").add(1); } function TogglePasswordVisible() { @@ -170,6 +175,7 @@ function TogglePasswordVisible() { Components.classes["@mozilla.org/observer-service;1"] .getService(Components.interfaces.nsIObserverService) .notifyObservers(null, "passwordmgr-password-toggle-complete", null); + Services.telemetry.getHistogramById("PWMGR_MANAGE_VISIBILITY_TOGGLED").add(showingPasswords); } function AskUserShowPasswords() { @@ -186,6 +192,7 @@ function AskUserShowPasswords() { function FinalizeSignonDeletions(syncNeeded) { for (var s=0; s