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";
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["PdfJsTelemetry"];
|
||||
var EXPORTED_SYMBOLS = ["PdfJsTelemetry"];
|
||||
|
||||
this.PdfJsTelemetry = {
|
||||
var PdfJsTelemetry = {
|
||||
onViewerIsUsed() {
|
||||
},
|
||||
onFallback() {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user