Upstream the changes from: Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8.
Please see: https://bugzilla.mozilla.org/show_bug.cgi?id=1440284 https://hg.mozilla.org/mozilla-central/rev/b599a95ce057 For consistency, the patch also updates the `PdfJsTelemetry-stub.jsm` file.
This commit is contained in:
parent
68077f61f1
commit
a30c184f1f
@ -15,9 +15,9 @@
|
|||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
this.EXPORTED_SYMBOLS = ["PdfJsTelemetry"];
|
var EXPORTED_SYMBOLS = ["PdfJsTelemetry"];
|
||||||
|
|
||||||
this.PdfJsTelemetry = {
|
var PdfJsTelemetry = {
|
||||||
onViewerIsUsed() {
|
onViewerIsUsed() {
|
||||||
},
|
},
|
||||||
onFallback() {
|
onFallback() {
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
this.EXPORTED_SYMBOLS = ["PdfJsTelemetry"];
|
var EXPORTED_SYMBOLS = ["PdfJsTelemetry"];
|
||||||
|
|
||||||
ChromeUtils.import("resource://gre/modules/Services.jsm");
|
ChromeUtils.import("resource://gre/modules/Services.jsm");
|
||||||
|
|
||||||
this.PdfJsTelemetry = {
|
var PdfJsTelemetry = {
|
||||||
onViewerIsUsed() {
|
onViewerIsUsed() {
|
||||||
let histogram = Services.telemetry.getHistogramById("PDF_VIEWER_USED");
|
let histogram = Services.telemetry.getHistogramById("PDF_VIEWER_USED");
|
||||||
histogram.add(true);
|
histogram.add(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user