blob: 17a5b8ae0b1d20be8e374ab5c166ac0b54d82f2a [file] [log] [blame]
RUN(internals.initializeMockMediaSource())
RUN(mock = internals.registerMockCDM())
RUN(mock.supportedDataTypes = ["mock"])
RUN(capabilities.initDataTypes = ["mock"])
RUN(capabilities.videoCapabilities = [{ contentType: 'video/mock; codecs="mock"' }] )
Call navigator.requestMediaKeySystemAccess() in a background tab
RUN(promise = navigator.requestMediaKeySystemAccess("org.webkit.mock", [capabilities]))
Switch the tab to foreground
Promise resolved OK
END OF TEST