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:
Jonas Jenwald 2018-02-26 17:35:39 +01:00
parent 68077f61f1
commit a30c184f1f
2 changed files with 4 additions and 4 deletions

View File

@ -15,9 +15,9 @@
"use strict";
this.EXPORTED_SYMBOLS = ["PdfJsTelemetry"];
var EXPORTED_SYMBOLS = ["PdfJsTelemetry"];
this.PdfJsTelemetry = {
var PdfJsTelemetry = {
onViewerIsUsed() {
},
onFallback() {

View File

@ -16,11 +16,11 @@
"use strict";
this.EXPORTED_SYMBOLS = ["PdfJsTelemetry"];
var EXPORTED_SYMBOLS = ["PdfJsTelemetry"];
ChromeUtils.import("resource://gre/modules/Services.jsm");
this.PdfJsTelemetry = {
var PdfJsTelemetry = {
onViewerIsUsed() {
let histogram = Services.telemetry.getHistogramById("PDF_VIEWER_USED");
histogram.add(true);