1
0
Fork 0
firefox/dom/security/featurepolicy/test/mochitest/file_xslt.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

15 lines
424 B
JavaScript

let features = [
"camera",
"fullscreen",
"gamepad",
"geolocation",
"microphone",
"storage-access",
].map(f => [f, document.featurePolicy.getAllowlistForFeature(f)]);
document.documentElement.requestFullscreen().finally(() => {
let fullscreen = document.fullscreenElement == document.documentElement;
document.exitFullscreen().finally(() => {
parent.postMessage({ fullscreen, features }, "*");
});
});