mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1018433 - Add telemetry for "undo close tab". r=mfinkle
This commit is contained in:
parent
7e15acb062
commit
e07b6107aa
@ -64,6 +64,10 @@ public interface TelemetryContract {
|
||||
// Sharing content.
|
||||
SHARE("share.1"),
|
||||
|
||||
// Undoing a user action.
|
||||
// Note: Only used in JavaScript for now, but here for completeness.
|
||||
UNDO("undo.1"),
|
||||
|
||||
// Unpinning an item.
|
||||
UNPIN("unpin.1"),
|
||||
|
||||
@ -137,6 +141,10 @@ public interface TelemetryContract {
|
||||
// Action triggered from a suggestion provided to the user.
|
||||
SUGGESTION("suggestion"),
|
||||
|
||||
// Action triggered from a SuperToast.
|
||||
// Note: Only used in JavaScript for now, but here for completeness.
|
||||
TOAST("toast"),
|
||||
|
||||
// VALUES BELOW THIS LINE ARE EXCLUSIVE TO TESTING.
|
||||
_TEST1("_test_method_1"),
|
||||
_TEST2("_test_method_2"),
|
||||
|
@ -989,6 +989,7 @@ var BrowserApp = {
|
||||
icon: "drawable://undo_button_icon",
|
||||
label: Strings.browser.GetStringFromName("undoCloseToast.action2"),
|
||||
callback: function() {
|
||||
UITelemetry.addEvent("undo.1", "toast", null, "closetab");
|
||||
let ss = Cc["@mozilla.org/browser/sessionstore;1"].getService(Ci.nsISessionStore);
|
||||
ss.undoCloseTab(window, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user