From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- dom/media/test/manifest.js | 2548 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 2548 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..be52d566ce --- /dev/null +++ b/dom/media/test/manifest.js @@ -0,0 +1,2548 @@ +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