[EME] navigator.requestMediaKeySystemAccess() should reject PUR sessionTypes in private browsing mode.
<rdar://problem/61125757>
Created attachment 400608 [details] Patch
Created attachment 400609 [details] Patch
Comment on attachment 400609 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=400609&action=review > LayoutTests/platform/mac/media/encrypted-media/fps-ephemeral-requestMediaKeySystemAccess.html:19 > + consoleWrite('This test must be run in private browsing mode.') This log message is not so clear. The browser will be in private browsing mode if window.internals is not empty? Also, do we need to exit the test if the browser is not in the private browsing mode?
(In reply to Peng Liu from comment #4) > Comment on attachment 400609 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=400609&action=review > > > LayoutTests/platform/mac/media/encrypted-media/fps-ephemeral-requestMediaKeySystemAccess.html:19 > > + consoleWrite('This test must be run in private browsing mode.') > > This log message is not so clear. The browser will be in private browsing > mode if window.internals is not empty? Also, do we need to exit the test if > the browser is not in the private browsing mode? This line will only be printed I window.internals is empty, or in other words, if someone loads this test directly in a web browser. The test will fail unless the page is loaded in private browsing mode.
Test failures are due to r262311, fixed in r262318. Landing.
Committed r262324: <https://trac.webkit.org/changeset/262324> All reviewed patches have been landed. Closing bug and clearing flags on attachment 400609 [details].