Bug 1262767 - NS_ERROR_FAILURE in nsITelemetry.getKeyedHistogramById when opening miniclip.com. r=bsmedberg, a=ritu
authorTobias Schneider <schneider@jancona.com>
Thu, 07 Apr 2016 10:46:00 -0400
changeset 325818 f04cf5bb543f1974c501d3600361dcc9656bd326
parent 325817 08693317e6581716cc6a8c3d95ed7ff6e16d2886
child 325819 19f7428b8d987e557f1fa54b5b2463a7b4d9d165
push id1128
push userjlund@mozilla.com
push dateWed, 01 Jun 2016 01:31:59 +0000
treeherdermozilla-release@fe0d30de989d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg, ritu
bugs1262767
milestone47.0a2
Bug 1262767 - NS_ERROR_FAILURE in nsITelemetry.getKeyedHistogramById when opening miniclip.com. r=bsmedberg, a=ritu
browser/modules/PluginContent.jsm
--- a/browser/modules/PluginContent.jsm
+++ b/browser/modules/PluginContent.jsm
@@ -422,17 +422,17 @@ PluginContent.prototype = {
         break;
 
       case "PluginInstantiated":
         let key = this._getPluginInfo(plugin).pluginTag.niceName;
         Services.telemetry.getKeyedHistogramById('PLUGIN_ACTIVATION_COUNT').add(key);
         shouldShowNotification = true;
         let pluginRect = plugin.getBoundingClientRect();
         if (pluginRect.width <= 5 && pluginRect.height <= 5) {
-          Services.telemetry.getKeyedHistogramById('PLUGIN_TINY_CONTENT').add(key);
+          Services.telemetry.getHistogramById('PLUGIN_TINY_CONTENT').add(1);
         }
         break;
     }
 
     if (this._getPluginInfo(plugin).mimetype === "application/x-shockwave-flash") {
       this._recordFlashPluginTelemetry(eventType, plugin);
     }