Bug 1219447 - Add a UI Telemetry probe for the 'Add to Reading List' web context menu. r=margaret, a=sylvestre
authorMark Finkle <mfinkle@mozilla.com>
Thu, 29 Oct 2015 15:14:01 -0400
changeset 296650 e728e4f632e5
parent 296649 6a0b1216e1a5
child 296651 a54630b3ac76
push id5275
push usercbook@mozilla.com
push date2015-11-09 10:21 +0000
treeherdermozilla-beta@a54630b3ac76 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret, sylvestre
bugs1219447
milestone43.0
Bug 1219447 - Add a UI Telemetry probe for the 'Add to Reading List' web context menu. r=margaret, a=sylvestre
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -703,16 +703,19 @@ var BrowserApp = {
             }
           });
         });
     }
 
     NativeWindow.contextmenus.add(stringGetter("contextmenu.addToReadingList"),
       NativeWindow.contextmenus.linkOpenableContext,
       function(aTarget) {
+        UITelemetry.addEvent("action.1", "contextmenu", null, "web_reading_list");
+        UITelemetry.addEvent("save.1", "contextmenu", null, "reading_list");
+
         let url = NativeWindow.contextmenus._getLinkURL(aTarget);
         Messaging.sendRequestForResult({
             type: "Reader:AddToList",
             title: truncate(url, MAX_TITLE_LENGTH),
             url: truncate(url, MAX_URI_LENGTH),
         }).catch(Cu.reportError);
       });