diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/meta/screen-capture | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/screen-capture')
12 files changed, 278 insertions, 0 deletions
diff --git a/testing/web-platform/meta/screen-capture/__dir__.ini b/testing/web-platform/meta/screen-capture/__dir__.ini new file mode 100644 index 0000000000..3d28c5b313 --- /dev/null +++ b/testing/web-platform/meta/screen-capture/__dir__.ini @@ -0,0 +1,3 @@ +prefs: [media.navigator.permission.disabled:true, media.navigator.streams.fake:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true] +lsan-allowed: [Alloc, alloc::raw_vec::finish_grow, mozilla::MozPromise, mozilla::MozPromiseHolderBase, mozilla::detail::HashTable, mozilla::dom::Performance::CreateForMainThread, mozilla::dom::PerformanceMainThread::CreateNavigationTimingEntry, mozilla::dom::ProtoAndIfaceCache::PageTableCache::EntrySlotOrCreate, mozilla::dom::ScriptLoader::EvaluateScript, mozilla::intl::FluentBundle::Constructor, mozilla::intl::FluentResource::Constructor, mozilla::net::nsStandardURL::TemplatedMutator, nsDynamicAtom::Create] +leak-threshold: [default:460800, tab:409600] diff --git a/testing/web-platform/meta/screen-capture/capture-controller-event-target.https.window.js.ini b/testing/web-platform/meta/screen-capture/capture-controller-event-target.https.window.js.ini new file mode 100644 index 0000000000..d948d625f0 --- /dev/null +++ b/testing/web-platform/meta/screen-capture/capture-controller-event-target.https.window.js.ini @@ -0,0 +1,2 @@ +[capture-controller-event-target.https.window.html] + expected: ERROR diff --git a/testing/web-platform/meta/screen-capture/delegate-request.https.sub.html.ini b/testing/web-platform/meta/screen-capture/delegate-request.https.sub.html.ini new file mode 100644 index 0000000000..e311d364cf --- /dev/null +++ b/testing/web-platform/meta/screen-capture/delegate-request.https.sub.html.ini @@ -0,0 +1,3 @@ +[delegate-request.https.sub.html] + [Display-capture request from a subframe succeeds with delegation when the top frame has user activation] + expected: FAIL diff --git a/testing/web-platform/meta/screen-capture/getdisplaymedia-after-discard.https.html.ini b/testing/web-platform/meta/screen-capture/getdisplaymedia-after-discard.https.html.ini new file mode 100644 index 0000000000..2e80a2702e --- /dev/null +++ b/testing/web-platform/meta/screen-capture/getdisplaymedia-after-discard.https.html.ini @@ -0,0 +1,5 @@ +[getdisplaymedia-after-discard.https.html] + [getDisplayMedia() in a discarded browsing context] + expected: + if os == "android": FAIL + diff --git a/testing/web-platform/meta/screen-capture/getdisplaymedia-capture-controller.https.window.js.ini b/testing/web-platform/meta/screen-capture/getdisplaymedia-capture-controller.https.window.js.ini new file mode 100644 index 0000000000..296c06caec --- /dev/null +++ b/testing/web-platform/meta/screen-capture/getdisplaymedia-capture-controller.https.window.js.ini @@ -0,0 +1,153 @@ +[getdisplaymedia-capture-controller.https.window.html] + [setFocusBehavior("no-focus-change") must throw InvalidStateError when track is stopped if capturing a browser] + expected: FAIL + + [setFocusBehavior("focus-captured-surface") must succeed when window of opportunity is opened if capturing a window] + expected: FAIL + + [setFocusBehavior("no-focus-change") must throw InvalidStateError the second time if capturing a window] + expected: FAIL + + [setFocusBehavior("no-focus-change") must throw InvalidStateError if capturing a monitor] + expected: FAIL + + [CaptureController in window] + expected: FAIL + + [setFocusBehavior("focus-captured-surface") must throw InvalidStateError when track is stopped if capturing a window] + expected: FAIL + + [setFocusBehavior("focus-captured-surface") must succeed before capture starts] + expected: FAIL + + [setFocusBehavior("no-focus-change") must succeed when getDisplayMedia promise is pending if capturing a browser] + expected: FAIL + + [setFocusBehavior("focus-captured-surface") must succeed when getDisplayMedia promise is pending if capturing a window] + expected: FAIL + + [setFocusBehavior("focus-captured-surface") must throw InvalidStateError when track is stopped if capturing a browser] + expected: FAIL + + [setFocusBehavior("focus-captured-surface") must throw InvalidStateError when window of opportunity is closed if capturing a browser] + expected: FAIL + + [setFocusBehavior("no-focus-change") must succeed when getDisplayMedia promise is pending if capturing a window] + expected: FAIL + + [getDisplayMedia({controller: true}) must fail with TypeError] + expected: FAIL + + [getDisplayMedia({controller}) must succeed] + expected: FAIL + + [setFocusBehavior("no-focus-change") must throw InvalidStateError when track is stopped if capturing a window] + expected: FAIL + + [setFocusBehavior("focus-captured-surface") must throw InvalidStateError if capturing a monitor] + expected: FAIL + + [setFocusBehavior("focus-captured-surface") must throw InvalidStateError when window of opportunity is closed if capturing a window] + expected: FAIL + + [setFocusBehavior("no-focus-change") must succeed when window of opportunity is opened if capturing a browser] + expected: FAIL + + [setFocusBehavior("no-focus-change") must succeed before capture starts] + expected: FAIL + + [setFocusBehavior("focus-captured-surface") must throw InvalidStateError the second time if capturing a browser] + expected: FAIL + + [getDisplayMedia({controller: null}) must fail with TypeError] + expected: FAIL + + [getDisplayMedia({controller: invalid}) must fail with TypeError] + expected: FAIL + + [setFocusBehavior("focus-captured-surface") must succeed when window of opportunity is opened if capturing a browser] + expected: FAIL + + [setFocusBehavior("undefined") must throw TypeError if focusBehavior is invalid] + expected: FAIL + + [setFocusBehavior("no-focus-change") must throw InvalidStateError the second time if capturing a browser] + expected: FAIL + + [setFocusBehavior("no-focus-change") must throw InvalidStateError when window of opportunity is closed if capturing a window] + expected: FAIL + + [setFocusBehavior("[object Object\]") must throw TypeError if focusBehavior is invalid] + expected: FAIL + + [setFocusBehavior("focus-captured-surface") must throw InvalidStateError if getDisplayMedia fails] + expected: FAIL + + [setFocusBehavior("null") must throw TypeError if focusBehavior is invalid] + expected: FAIL + + [setFocusBehavior("no-focus-change") must succeed when window of opportunity is opened if capturing a window] + expected: FAIL + + [setFocusBehavior("focus-captured-surface") must throw InvalidStateError the second time if capturing a window] + expected: FAIL + + [setFocusBehavior("no-focus-change") must throw InvalidStateError if getDisplayMedia fails] + expected: FAIL + + [getDisplayMedia({controller: [object Object\]}) must fail with TypeError] + expected: FAIL + + [getDisplayMedia({controller}) must fail with InvalidStateError if controller is bound] + expected: FAIL + + [setFocusBehavior("no-focus-change") must throw InvalidStateError when window of opportunity is closed if capturing a browser] + expected: FAIL + + [setFocusBehavior("invalid") must throw TypeError if focusBehavior is invalid] + expected: FAIL + + [setFocusBehavior("focus-captured-surface") must succeed when getDisplayMedia promise is pending if capturing a browser] + expected: FAIL + + [setFocusBehavior("true") must throw TypeError if focusBehavior is invalid] + expected: FAIL + + [setFocusBehavior("focus-capturing-application") must succeed before capture starts] + expected: FAIL + + [setFocusBehavior("focus-capturing-application") must succeed when window of opportunity is opened if capturing a window] + expected: FAIL + + [setFocusBehavior("focus-capturing-application") must succeed when window of opportunity is opened if capturing a browser] + expected: FAIL + + [setFocusBehavior("focus-capturing-application") must succeed when getDisplayMedia promise is pending if capturing a window] + expected: FAIL + + [setFocusBehavior("focus-capturing-application") must succeed when getDisplayMedia promise is pending if capturing a browser] + expected: FAIL + + [setFocusBehavior("focus-capturing-application") must throw InvalidStateError when track is stopped if capturing a window] + expected: FAIL + + [setFocusBehavior("focus-capturing-application") must throw InvalidStateError when track is stopped if capturing a browser] + expected: FAIL + + [setFocusBehavior("focus-capturing-application") must throw InvalidStateError if capturing a monitor] + expected: FAIL + + [setFocusBehavior("focus-capturing-application") must throw InvalidStateError when window of opportunity is closed if capturing a window] + expected: FAIL + + [setFocusBehavior("focus-capturing-application") must throw InvalidStateError when window of opportunity is closed if capturing a browser] + expected: FAIL + + [setFocusBehavior("focus-capturing-application") must throw InvalidStateError the second time if capturing a window] + expected: FAIL + + [setFocusBehavior("focus-capturing-application") must throw InvalidStateError the second time if capturing a browser] + expected: FAIL + + [setFocusBehavior("focus-capturing-application") must throw InvalidStateError if getDisplayMedia fails] + expected: FAIL diff --git a/testing/web-platform/meta/screen-capture/getdisplaymedia-framerate.https.html.ini b/testing/web-platform/meta/screen-capture/getdisplaymedia-framerate.https.html.ini new file mode 100644 index 0000000000..01971c5100 --- /dev/null +++ b/testing/web-platform/meta/screen-capture/getdisplaymedia-framerate.https.html.ini @@ -0,0 +1,6 @@ +[getdisplaymedia-framerate.https.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [getDisplayMedia() must adhere to frameRate if set] + expected: + if os == "android": FAIL diff --git a/testing/web-platform/meta/screen-capture/getdisplaymedia.https.html.ini b/testing/web-platform/meta/screen-capture/getdisplaymedia.https.html.ini new file mode 100644 index 0000000000..2717594518 --- /dev/null +++ b/testing/web-platform/meta/screen-capture/getdisplaymedia.https.html.ini @@ -0,0 +1,47 @@ +[getdisplaymedia.https.html] + disabled: + if os == "android": bug 1550895 (frequently fails on geckoview) + [displaySurface is supported] + expected: FAIL + + [getDisplayMedia({"selfBrowserSurface":"invalid"}) must fail with TypeError] + expected: FAIL + + [getDisplayMedia({"surfaceSwitching":"invalid"}) must fail with TypeError] + expected: FAIL + + [getDisplayMedia({"systemAudio":"invalid"}) must fail with TypeError] + expected: FAIL + + [getDisplayMedia({"video":{"displaySurface":"monitor"}}) with getSettings] + expected: FAIL + + [getDisplayMedia({"video":{"displaySurface":"window"}}) with getSettings] + expected: FAIL + + [getDisplayMedia({"video":{"displaySurface":"browser"}}) with getSettings] + expected: FAIL + + [suppressLocalAudioPlayback is supported] + expected: FAIL + + [getDisplayMedia({"audio":{"suppressLocalAudioPlayback":true}}) with getSettings] + expected: FAIL + + [getDisplayMedia({"audio":{"suppressLocalAudioPlayback":false}}) with getSettings] + expected: FAIL + + [getDisplayMedia() with getCapabilities] + expected: FAIL + + [getDisplayMedia({"monitorTypeSurfaces":"invalid"}) must fail with TypeError] + expected: FAIL + + [getDisplayMedia({"video":{"displaySurface":"monitor"},"monitorTypeSurfaces":"exclude"}) rejects with TypeError] + expected: FAIL + + [getDisplayMedia({"video":{"displaySurface":"monitor"},"monitorTypeSurfaces":"include"}) resolves with a monitor track] + expected: FAIL + + [getDisplayMedia({"monitorTypeSurfaces":"exclude"}) resolves with a non monitor track] + expected: FAIL diff --git a/testing/web-platform/meta/screen-capture/historical.https.html.ini b/testing/web-platform/meta/screen-capture/historical.https.html.ini new file mode 100644 index 0000000000..87e2fdffc4 --- /dev/null +++ b/testing/web-platform/meta/screen-capture/historical.https.html.ini @@ -0,0 +1,3 @@ +[historical.https.html] + expected: + if (os == "android") and fission: [TIMEOUT, OK] diff --git a/testing/web-platform/meta/screen-capture/idlharness.https.window.js.ini b/testing/web-platform/meta/screen-capture/idlharness.https.window.js.ini new file mode 100644 index 0000000000..663e3ccfb4 --- /dev/null +++ b/testing/web-platform/meta/screen-capture/idlharness.https.window.js.ini @@ -0,0 +1,33 @@ +[idlharness.https.window.html] + [MediaDevices interface: operation getDisplayMedia(optional DisplayMediaStreamOptions)] + expected: + if os == "android": FAIL + + [MediaDevices interface: navigator.mediaDevices must inherit property "getDisplayMedia(optional DisplayMediaStreamOptions)" with the proper type] + expected: + if os == "android": FAIL + + [MediaDevices interface: calling getDisplayMedia(optional DisplayMediaStreamOptions) on navigator.mediaDevices with too few arguments must throw TypeError] + expected: + if os == "android": FAIL + + [CaptureController interface: existence and properties of interface object] + expected: FAIL + + [CaptureController interface object length] + expected: FAIL + + [CaptureController interface object name] + expected: FAIL + + [CaptureController interface: existence and properties of interface prototype object] + expected: FAIL + + [CaptureController interface: existence and properties of interface prototype object's "constructor" property] + expected: FAIL + + [CaptureController interface: existence and properties of interface prototype object's @@unscopables property] + expected: FAIL + + [CaptureController interface: operation setFocusBehavior(CaptureStartFocusBehavior)] + expected: FAIL diff --git a/testing/web-platform/meta/screen-capture/permissions-policy-audio+video.https.sub.html.ini b/testing/web-platform/meta/screen-capture/permissions-policy-audio+video.https.sub.html.ini new file mode 100644 index 0000000000..082d85ed64 --- /dev/null +++ b/testing/web-platform/meta/screen-capture/permissions-policy-audio+video.https.sub.html.ini @@ -0,0 +1,7 @@ +[permissions-policy-audio+video.https.sub.html] + expected: + if (os == "win") and debug and not swgl: [OK, ERROR] + [Default "display-capture" permissions policy ["self"\] allows the top-level document.] + expected: + if (os == "mac") and not debug: [PASS, FAIL] + if os == "android": FAIL diff --git a/testing/web-platform/meta/screen-capture/permissions-policy-audio.https.sub.html.ini b/testing/web-platform/meta/screen-capture/permissions-policy-audio.https.sub.html.ini new file mode 100644 index 0000000000..c9d76a4b99 --- /dev/null +++ b/testing/web-platform/meta/screen-capture/permissions-policy-audio.https.sub.html.ini @@ -0,0 +1,7 @@ +[permissions-policy-audio.https.sub.html] + expected: + if (os == "win") and not debug and (processor == "x86_64"): [OK, ERROR] + [Default "display-capture" permissions policy ["self"\] allows the top-level document.] + expected: + if (os == "mac") and not debug: [PASS, FAIL] + if os == "android": FAIL diff --git a/testing/web-platform/meta/screen-capture/permissions-policy-video.https.sub.html.ini b/testing/web-platform/meta/screen-capture/permissions-policy-video.https.sub.html.ini new file mode 100644 index 0000000000..d0bf036076 --- /dev/null +++ b/testing/web-platform/meta/screen-capture/permissions-policy-video.https.sub.html.ini @@ -0,0 +1,9 @@ +[permissions-policy-video.https.sub.html] + expected: + if fission and not debug and (os == "win") and (processor == "x86_64"): [OK, ERROR] + if fission and debug and (os == "mac"): [OK, ERROR] + if fission and not debug and (os == "linux"): [OK, ERROR] + [Default "display-capture" permissions policy ["self"\] allows the top-level document.] + expected: + if (os == "mac") and not debug: [PASS, FAIL] + if os == "android": FAIL |