From c6594b73a7347deb1bb9eea65102e3dd5efa571c Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 27 Jan 2024 13:12:54 +0100 Subject: [PATCH] Stub out the `getNimbusExperimentData` method in "regular" MOZCENTRAL builds --- web/firefoxcom.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/firefoxcom.js b/web/firefoxcom.js index 06b5f1b19..e8265df72 100644 --- a/web/firefoxcom.js +++ b/web/firefoxcom.js @@ -400,6 +400,9 @@ class ExternalServices extends BaseExternalServices { } async getNimbusExperimentData() { + if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("GECKOVIEW")) { + return null; + } const nimbusData = await FirefoxCom.requestAsync( "getNimbusExperimentData", null