https://blogs.windows.com/msedgedev/2025/04/03/deprecating-window-external-gethostenvironmentvalue/
The window.external.getHostEnvironmentValue() method is an Edge-only, non-standards-based way for web developers to access information about the browser and platform. ..
we’re announcing our plan to deprecate this method and we’re asking web developers to use the standardized User-Agent Client Hints API instead.
Our decision to deprecate the getHostEnvironmentValue() method is driven by our goal to enhance browser privacy by eliminating user fingerprinting…