ShadowRealm is a TC39 proposal to add an in-process, synchronous way to create a new global environment with its own global object and its own set of built-ins and intrinsics. See the proposal explainer at https://github.com/tc39/proposal-shadowrealm/blob/main/explainer.md
The ShadowRealm API provides a way to run trusted code in a fresh global environment, which has use cases for virtualization, virtual DOM, and other execution of trusted 3rd party code. Please note that because ShadowRealm is a synchronous, in-process (e.g. no separate address space protection) API, it is not a sufficient security boundary for many threat models. It is not a generic sandboxing primitive for security purposes.
It is a new feature and a Stage 2 TC39 proposal. The the main risk is that it fails to become an interoperable part of the web platform if other browsers do not implement it.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
While a new way to execute JS code, it is purely synchronous, and thus the executed code is debugged like any other synchronous JS code. The ShadowRealm objects themselves have reasonable console output.
Tested in test262: https://github.com/tc39/test262/tree/main/test/built-ins/ShadowRealm Various tests in WPT for shadow realms integration with other web standards.
No milestones specified