Bug 1130032 - Missing plugin UI is broken. r=mconley, a=sledru
authorYury Delendik <ydelendik@mozilla.com>
Fri, 06 Feb 2015 15:15:25 -0600
changeset 243747 5cfeb5068e2b
parent 243746 a00e758a0460
child 243748 6e32981aaf6d
push id4461
push userryanvm@gmail.com
push date2015-02-10 22:06 +0000
treeherdermozilla-beta@2f97ce37f5c4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley, sledru
bugs1130032
milestone36.0
Bug 1130032 - Missing plugin UI is broken. r=mconley, a=sledru
browser/modules/PluginContent.jsm
--- a/browser/modules/PluginContent.jsm
+++ b/browser/modules/PluginContent.jsm
@@ -441,16 +441,19 @@ PluginContent.prototype = {
       Services.telemetry.getHistogramById('FLASH_PLUGIN_WIDTH')
                        .add(pluginRect.width);
       Services.telemetry.getHistogramById('FLASH_PLUGIN_HEIGHT')
                        .add(pluginRect.height);
       Services.telemetry.getHistogramById('FLASH_PLUGIN_AREA')
                        .add(pluginRect.width * pluginRect.height);
 
       let state = this._getPluginInfo(plugin).fallbackType;
+      if (state === null) {
+        state = Ci.nsIObjectLoadingContent.PLUGIN_UNSUPPORTED;
+      }
       Services.telemetry.getHistogramById('FLASH_PLUGIN_STATES')
                        .add(state);
     }
   },
 
   _finishRecordingFlashPluginTelemetry: function () {
     if (this.flashPluginStats) {
       Services.telemetry.getHistogramById('FLASH_PLUGIN_INSTANCES_ON_PAGE')