diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2022-05-08 16:42:41 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2022-05-08 16:42:41 -0400 |
commit | 34964f0ea6b83234e47396441ca3b8334dbf0daa (patch) | |
tree | 570f0d78d7c2c8b38343a21cfb2e9e3d351f34e5 /modules/PluginContent.jsm | |
parent | 0e6fd39de109fa1020848fecddb5821501661ca7 (diff) | |
download | iceweasel-uxp-34964f0ea6b83234e47396441ca3b8334dbf0daa.tar.gz |
Remove telemetry more telemetry references
Diffstat (limited to 'modules/PluginContent.jsm')
-rw-r--r-- | modules/PluginContent.jsm | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/modules/PluginContent.jsm b/modules/PluginContent.jsm index 622d608..f9f4b0e 100644 --- a/modules/PluginContent.jsm +++ b/modules/PluginContent.jsm @@ -167,7 +167,6 @@ PluginContent.prototype = { return; } - this._finishRecordingFlashPluginTelemetry(); this.clearPluginCaches(); this.haveShownNotification = false; }, @@ -533,19 +532,11 @@ PluginContent.prototype = { 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.getHistogramById('PLUGIN_TINY_CONTENT').add(1); - } break; } - if (this._getPluginInfo(plugin).mimetype === FLASH_MIME_TYPE) { - this._recordFlashPluginTelemetry(eventType, plugin); - } - // Show the in-content UI if it's not too big. The crashed plugin handler already did this. let overlay = this.getPluginUI(plugin, "main"); if (eventType != "PluginCrashed") { @@ -577,49 +568,6 @@ PluginContent.prototype = { } }, - _recordFlashPluginTelemetry: function (eventType, plugin) { - if (!Services.telemetry.canRecordExtended) { - return; - } - - if (!this.flashPluginStats) { - this.flashPluginStats = { - instancesCount: 0, - plugins: new WeakSet() - }; - } - - if (!this.flashPluginStats.plugins.has(plugin)) { - // Reporting plugin instance and its dimensions only once. - this.flashPluginStats.plugins.add(plugin); - - this.flashPluginStats.instancesCount++; - - let pluginRect = plugin.getBoundingClientRect(); - 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') - .add(this.flashPluginStats.instancesCount); - delete this.flashPluginStats; - } - }, - isKnownPlugin: function (objLoadingContent) { return (objLoadingContent.getContentTypeForMIMEType(objLoadingContent.actualType) == Ci.nsIObjectLoadingContent.TYPE_PLUGIN); |