From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- dom/media/test/manifest.js | 2556 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 2556 insertions(+) create mode 100644 dom/media/test/manifest.js (limited to 'dom/media/test/manifest.js') diff --git a/dom/media/test/manifest.js b/dom/media/test/manifest.js new file mode 100644 index 0000000000..bb4557d498 --- /dev/null +++ b/dom/media/test/manifest.js @@ -0,0 +1,2556 @@ +const { AppConstants } = SpecialPowers.ChromeUtils.importESModule( + "resource://gre/modules/AppConstants.sys.mjs" +); + +// In each list of tests below, test file types that are not supported should +// be ignored. To make sure tests respect that, we include a file of type +// "bogus/duh" in each list. + +// Make sure to not touch navigator in here, since we want to push prefs that +// will affect the APIs it exposes, but the set of exposed APIs is determined +// when Navigator.prototype is created. So if we touch navigator before pushing +// the prefs, the APIs it exposes will not take those prefs into account. We +// work around this by using a navigator object from a different global for our +// UA string testing. +var gManifestNavigatorSource = document.documentElement.appendChild( + document.createElement("iframe") +); +gManifestNavigatorSource.style.display = "none"; +function manifestNavigator() { + return gManifestNavigatorSource.contentWindow.navigator; +} + +// Similarly, use a