Calls to determine Widevine key system support (using
MediaDrm.isCryptoSchemeSupported) crash on some Android devices. To
avoid crashing the browser, run these queries in a separate
unsandboxed process (if possible). This avoids crashing the browser
and will result in the key system not getting registered, which means
that protected content will not play on the device.
Tested on a Pixel 7 with both clank and WebView. Also tested on an
Android emulator (clank only). Verified that the information shown with
chrome://media-internals#cdms matches current Chrome results (clank
only) and playback of protected content works.
Bug: 40280540
Bug: 40948139
Test: see above
Change-Id: Ieb509ce38b29a3fcaa77f6fae668b75d97868191
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5704248
Reviewed-by: Vikram Pasupathy <vpasupathy@chromium.org>
Reviewed-by: Richard (Torne) Coles <torne@chromium.org>
Reviewed-by: Matthew Denton <mpdenton@chromium.org>
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: John Rummell <jrummell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1336847}