Chromium Code Reviews
Descriptionmedia: Add a web preference to enable encrypted media
Add a WebPreference encrypted_media_enabled. If it's set to false, all requestMediaKeySystemAccess() calls will return a rejected promise with NotSupportedError.
Also connect |encrypted_media_enabled| with a new Chrome preference kWebKitEncryptedMediaEnabled and make sure when user changes that preference, the Web preference in the renderer process will get updated.
Note that the check is only done in requestMediaKeySystemAccess(). So if a user disabled the preference after a protected content playback already started, the playback session will not be affected. However, all newer protected content playback attempt will fail.
NOTRY=true
NOPRESUBMIT=true
TBR=tommycli@chromium.org,jam@chromium.org,dcheng@chromium.org,jrummell@chromium.org
BUG=689778
TEST=Manually tested.
Review-Url: https://codereview.chromium.org/2676633006
Cr-Commit-Position: refs/heads/master@{#449048}
(cherry picked from commit d252d7b55af16f3edbb90d1132cf6ff360f7d11f)
Review-Url: https://codereview.chromium.org/2681383003
Cr-Commit-Position: refs/branch-heads/2987@{#412}
Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943}
Committed: https://chromium.googlesource.com/chromium/src/+/60a11504bbae8e3ed2a790668bf7da6e5f1c353b
Patch Set 1 #Messages
Total messages: 5 (3 generated)
|