Bug 1515943 - Generate telemetry events from context menu or middle click on cert error pages. r=johannh CLOSED TREE
authorSresthaSrivastava <sresthasrivastava.ss@gmail.com>
Fri, 01 Mar 2019 11:15:37 +0100
changeset 519814 c134bc3933e6216b06cfbe0128b78072e858efe2
parent 519813 234f0dde00661d41a6641e950ded8bd93aabf9a9
child 519815 860d0c16a0fcc81f659000e6eb20f05794adb8a2
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
bugs1515943
milestone67.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 1515943 - Generate telemetry events from context menu or middle click on cert error pages. r=johannh CLOSED TREE
browser/actors/NetErrorChild.jsm
--- a/browser/actors/NetErrorChild.jsm
+++ b/browser/actors/NetErrorChild.jsm
@@ -618,16 +618,18 @@ class NetErrorChild extends ActorChild {
     case "click":
       if (aEvent.button == 0) {
         if (this.isAboutCertError(doc)) {
           this.recordClick(aEvent.originalTarget);
           this.onCertError(aEvent.originalTarget, doc.defaultView);
         } else {
           this.onClick(aEvent);
         }
+      } else if (this.isAboutCertError(doc)) {
+          this.recordClick(aEvent.originalTarget);
       }
       break;
     }
   }
 
   receiveMessage(msg) {
     if (msg.name == "CertErrorDetails") {
       let frameDocShell = WebNavigationFrames.findDocShell(msg.data.frameId, this.docShell);