Bug 1219447 - Add a UI Telemetry probe for the 'Add to Reading List' web context menu r=margaret
authorMark Finkle <mfinkle@mozilla.com>
Thu, 29 Oct 2015 15:14:01 -0400
changeset 304406 8de1dc055999ac13557ba40504b5ff81979d28f9
parent 304405 8e4fa465e2c6ab3cdf67db304a35135c7be55c08
child 304407 b9befd77d22ca4e0acd52a6c99ef8fb44b332f00
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs1219447
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1219447 - Add a UI Telemetry probe for the 'Add to Reading List' web context menu r=margaret
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -716,16 +716,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);
       });