Closed Bug 1725704 Opened 3 years ago Closed 3 years ago

Implement test to cover QueryOutputProtectionStatus logic

Categories

(Core :: Audio/Video: Playback, task, P1)

task

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: bryce, Assigned: bryce)

References

Details

Attachments

(1 file)

Once bug 1711912 lands and the clear key CDM has support for QueryOutputProtectionStatus we should implement a test to cover this and ensure Gecko is responding to such queries as expected.

This adds coverage via the clearkey CDM to ensure that the output protection
query is working as intended. These tests ensure that the output protection
machinery recognizes when browsers windows are being captured, and this is
reflected by the clear key CDM changing key status on a test key id.

Two cases are covered:

  1. Media playback is started, then during media playback a screen capture is
    started and stopped. The test checks that we set restricted key status while
    capture is active, and stop doing so once the capture stops.
  2. Start a screen capture then start media playback, then stop capture while
    playback is still active. This is similar to the first case, but the media
    should start in a restricted state, as capture is ongoing when playback starts.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: