From def92d1b8e9d373e2f6f27c366d578d97d8960c6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:34:50 +0200 Subject: Merging upstream version 126.0. Signed-off-by: Daniel Baumann --- .../corroborator/test/xpcshell/data/privileged.xpi | Bin 4659 -> 0 bytes .../corroborator/test/xpcshell/data/signed-amo.xpi | Bin 4702 -> 0 bytes .../test/xpcshell/data/signed-components.xpi | Bin 6995 -> 0 bytes .../test/xpcshell/data/signed-privileged.xpi | Bin 4659 -> 0 bytes .../corroborator/test/xpcshell/data/unsigned.xpi | Bin 528 -> 0 bytes .../corroborator/test/xpcshell/test_verify_jar.js | 31 --------------------- .../corroborator/test/xpcshell/xpcshell.toml | 5 ---- 7 files changed, 36 deletions(-) delete mode 100644 toolkit/components/corroborator/test/xpcshell/data/privileged.xpi delete mode 100644 toolkit/components/corroborator/test/xpcshell/data/signed-amo.xpi delete mode 100644 toolkit/components/corroborator/test/xpcshell/data/signed-components.xpi delete mode 100644 toolkit/components/corroborator/test/xpcshell/data/signed-privileged.xpi delete mode 100644 toolkit/components/corroborator/test/xpcshell/data/unsigned.xpi delete mode 100644 toolkit/components/corroborator/test/xpcshell/test_verify_jar.js delete mode 100644 toolkit/components/corroborator/test/xpcshell/xpcshell.toml (limited to 'toolkit/components/corroborator/test/xpcshell') diff --git a/toolkit/components/corroborator/test/xpcshell/data/privileged.xpi b/toolkit/components/corroborator/test/xpcshell/data/privileged.xpi deleted file mode 100644 index c22acaacd2..0000000000 Binary files a/toolkit/components/corroborator/test/xpcshell/data/privileged.xpi and /dev/null differ diff --git a/toolkit/components/corroborator/test/xpcshell/data/signed-amo.xpi b/toolkit/components/corroborator/test/xpcshell/data/signed-amo.xpi deleted file mode 100644 index e2ba7d6fd8..0000000000 Binary files a/toolkit/components/corroborator/test/xpcshell/data/signed-amo.xpi and /dev/null differ diff --git a/toolkit/components/corroborator/test/xpcshell/data/signed-components.xpi b/toolkit/components/corroborator/test/xpcshell/data/signed-components.xpi deleted file mode 100644 index f27ac1fb73..0000000000 Binary files a/toolkit/components/corroborator/test/xpcshell/data/signed-components.xpi and /dev/null differ diff --git a/toolkit/components/corroborator/test/xpcshell/data/signed-privileged.xpi b/toolkit/components/corroborator/test/xpcshell/data/signed-privileged.xpi deleted file mode 100644 index c22acaacd2..0000000000 Binary files a/toolkit/components/corroborator/test/xpcshell/data/signed-privileged.xpi and /dev/null differ diff --git a/toolkit/components/corroborator/test/xpcshell/data/unsigned.xpi b/toolkit/components/corroborator/test/xpcshell/data/unsigned.xpi deleted file mode 100644 index 9e10be5db3..0000000000 Binary files a/toolkit/components/corroborator/test/xpcshell/data/unsigned.xpi and /dev/null differ diff --git a/toolkit/components/corroborator/test/xpcshell/test_verify_jar.js b/toolkit/components/corroborator/test/xpcshell/test_verify_jar.js deleted file mode 100644 index c1c98f4485..0000000000 --- a/toolkit/components/corroborator/test/xpcshell/test_verify_jar.js +++ /dev/null @@ -1,31 +0,0 @@ -/* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */ -/* vim: set sts=2 sw=2 et tw=80: */ -"use strict"; - -const { Corroborate } = ChromeUtils.importESModule( - "resource://gre/modules/Corroborate.sys.mjs" -); - -add_task(async function test_various_jars() { - let result = await Corroborate.verifyJar(do_get_file("data/unsigned.xpi")); - equal(result, false, "unsigned files do not verify"); - - result = await Corroborate.verifyJar(do_get_file("data/signed-amo.xpi")); - equal(result, false, "AMO signed files do not verify"); - - result = await Corroborate.verifyJar( - do_get_file("data/signed-privileged.xpi") - ); - equal(result, false, "Privileged signed files do not verify"); - - let missingFile = do_get_file("data"); - missingFile.append("missing.xpi"); - - result = await Corroborate.verifyJar(missingFile); - equal(result, false, "Missing (but expected) files do not verify"); - - result = await Corroborate.verifyJar( - do_get_file("data/signed-components.xpi") - ); - equal(result, true, "Components signed files do verify"); -}); diff --git a/toolkit/components/corroborator/test/xpcshell/xpcshell.toml b/toolkit/components/corroborator/test/xpcshell/xpcshell.toml deleted file mode 100644 index d30b8dfb17..0000000000 --- a/toolkit/components/corroborator/test/xpcshell/xpcshell.toml +++ /dev/null @@ -1,5 +0,0 @@ -[DEFAULT] -tags = "corroborator" -support-files = ["data/**"] - -["test_verify_jar.js"] -- cgit v1.2.3