diff --git a/src/main_thread/decrypt/__tests__/__global__/media_key_system_access.test.ts b/src/main_thread/decrypt/__tests__/__global__/media_key_system_access.test.ts index b24ffb6e2d..52a9e2a37e 100644 --- a/src/main_thread/decrypt/__tests__/__global__/media_key_system_access.test.ts +++ b/src/main_thread/decrypt/__tests__/__global__/media_key_system_access.test.ts @@ -493,7 +493,7 @@ describe("decrypt - global tests - media key system access", () => { return { ...conf, persistentState: "required", - sessionTypes: ["temporary", "persistent-license"], + sessionTypes: ["persistent-license"], }; }); expect(mockRequestMediaKeySystemAccess).toHaveBeenNthCalledWith( @@ -913,7 +913,7 @@ describe("decrypt - global tests - media key system access", () => { return { ...conf, persistentState: "required", - sessionTypes: ["temporary", "persistent-license"], + sessionTypes: ["persistent-license"], }; }); const expectedPersistentConfig: MediaKeySystemConfiguration[] = defaultKSConfig.map( @@ -921,7 +921,7 @@ describe("decrypt - global tests - media key system access", () => { return { ...conf, persistentState: "required", - sessionTypes: ["temporary", "persistent-license"], + sessionTypes: ["persistent-license"], }; }, ); @@ -1019,7 +1019,7 @@ describe("decrypt - global tests - media key system access", () => { return { ...conf, persistentState: "required", - sessionTypes: ["temporary", "persistent-license"], + sessionTypes: ["persistent-license"], }; }); expect(mockRequestMediaKeySystemAccess).toHaveBeenCalledTimes(2); @@ -1066,7 +1066,7 @@ describe("decrypt - global tests - media key system access", () => { return { ...conf, persistentState: "required", - sessionTypes: ["temporary", "persistent-license"], + sessionTypes: ["persistent-license"], }; }, ); @@ -1075,7 +1075,7 @@ describe("decrypt - global tests - media key system access", () => { return { ...conf, persistentState: "required", - sessionTypes: ["temporary", "persistent-license"], + sessionTypes: ["persistent-license"], }; }); const expectedIdentifierConfig: MediaKeySystemConfiguration[] = defaultKSConfig.map( @@ -1172,7 +1172,7 @@ describe("decrypt - global tests - media key system access", () => { return { ...conf, persistentState: "required", - sessionTypes: ["temporary", "persistent-license"], + sessionTypes: ["persistent-license"], }; }); expect(mockRequestMediaKeySystemAccess).toHaveBeenCalledTimes(2); diff --git a/src/main_thread/decrypt/find_key_system.ts b/src/main_thread/decrypt/find_key_system.ts index 3a9c2b7942..b598ee7cf7 100644 --- a/src/main_thread/decrypt/find_key_system.ts +++ b/src/main_thread/decrypt/find_key_system.ts @@ -198,8 +198,7 @@ function buildKeySystemConfigurations( } } else if (!isNullOrUndefined(keySystem.persistentLicenseConfig)) { persistentState = "required"; - // TODO: shouldn't it be just `["persistent-license"]` here? - sessionTypes = ["temporary", "persistent-license"]; + sessionTypes = ["persistent-license"]; } else { sessionTypes = ["temporary"]; }