diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-07-07 15:18:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-07 15:18:51 +0200 |
commit | 0c5085ace12dec8cb6dc503507363dc4b19f93e3 (patch) | |
tree | d9f4cf028e9eb14059f8f2d1b2c5c76408ec8ce9 /toolkit/components/narrate/NarrateControls.jsm | |
parent | cbd52d48fa2524beb37b506b55a315b49f026a1e (diff) | |
parent | 6a8ba478553625a31b47e726d04c608d955c6b93 (diff) | |
download | UXP-0c5085ace12dec8cb6dc503507363dc4b19f93e3.tar UXP-0c5085ace12dec8cb6dc503507363dc4b19f93e3.tar.gz UXP-0c5085ace12dec8cb6dc503507363dc4b19f93e3.tar.lz UXP-0c5085ace12dec8cb6dc503507363dc4b19f93e3.tar.xz UXP-0c5085ace12dec8cb6dc503507363dc4b19f93e3.zip |
Merge pull request #606 from Ascrod/master
Updates to Reader and Narrator components.
Diffstat (limited to 'toolkit/components/narrate/NarrateControls.jsm')
-rw-r--r-- | toolkit/components/narrate/NarrateControls.jsm | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/toolkit/components/narrate/NarrateControls.jsm b/toolkit/components/narrate/NarrateControls.jsm index be3ce636c..56b3deaf8 100644 --- a/toolkit/components/narrate/NarrateControls.jsm +++ b/toolkit/components/narrate/NarrateControls.jsm @@ -10,7 +10,6 @@ Cu.import("resource://gre/modules/narrate/VoiceSelect.jsm"); Cu.import("resource://gre/modules/narrate/Narrator.jsm"); Cu.import("resource://gre/modules/Services.jsm"); Cu.import("resource://gre/modules/AsyncPrefs.jsm"); -Cu.import("resource://gre/modules/TelemetryStopwatch.jsm"); this.EXPORTED_SYMBOLS = ["NarrateControls"]; @@ -147,11 +146,6 @@ NarrateControls.prototype = { case "voiceschanged": this._setupVoices(); break; - case "unload": - if (this.narrator.speaking) { - TelemetryStopwatch.finish("NARRATE_CONTENT_SPEAKTIME_MS", this); - } - break; } }, @@ -187,20 +181,9 @@ NarrateControls.prototype = { } let narrateToggle = win.document.querySelector(".narrate-toggle"); - let histogram = Services.telemetry.getKeyedHistogramById( - "NARRATE_CONTENT_BY_LANGUAGE_2"); let initial = !this._voicesInitialized; this._voicesInitialized = true; - if (initial) { - histogram.add(language, 0); - } - - if (options.length && narrateToggle.hidden) { - // About to show for the first time.. - histogram.add(language, 1); - } - // We disable this entire feature if there are no available voices. narrateToggle.hidden = !options.length; }); @@ -265,12 +248,6 @@ NarrateControls.prototype = { this._doc.querySelector(".narrate-skip-previous").disabled = !speaking; this._doc.querySelector(".narrate-skip-next").disabled = !speaking; - - if (speaking) { - TelemetryStopwatch.start("NARRATE_CONTENT_SPEAKTIME_MS", this); - } else { - TelemetryStopwatch.finish("NARRATE_CONTENT_SPEAKTIME_MS", this); - } }, _createVoiceLabel(voice) { |