From a30c184f1f0470d195b39009ce8968f4d5f968f7 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Mon, 26 Feb 2018 17:35:39 +0100 Subject: [PATCH] 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. --- extensions/firefox/content/PdfJsTelemetry-stub.jsm | 4 ++-- extensions/firefox/content/PdfJsTelemetry.jsm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/firefox/content/PdfJsTelemetry-stub.jsm b/extensions/firefox/content/PdfJsTelemetry-stub.jsm index 047941dfe..69f4a1844 100644 --- a/extensions/firefox/content/PdfJsTelemetry-stub.jsm +++ b/extensions/firefox/content/PdfJsTelemetry-stub.jsm @@ -15,9 +15,9 @@ "use strict"; -this.EXPORTED_SYMBOLS = ["PdfJsTelemetry"]; +var EXPORTED_SYMBOLS = ["PdfJsTelemetry"]; -this.PdfJsTelemetry = { +var PdfJsTelemetry = { onViewerIsUsed() { }, onFallback() { diff --git a/extensions/firefox/content/PdfJsTelemetry.jsm b/extensions/firefox/content/PdfJsTelemetry.jsm index 4fc6efe76..0436debd2 100644 --- a/extensions/firefox/content/PdfJsTelemetry.jsm +++ b/extensions/firefox/content/PdfJsTelemetry.jsm @@ -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);