thanks for the reply, and apologies for the socket vs sockets confusion.
Based on the API configurations, chrome.socket is not allowlisted for any extension, so it is safe to remove from WML Chromium builds.
However, most of the implementation is reused by chrome.sockets.tcp, chrome.sockets.udp and chrome.sockets.tcpServer APIS, and in minor part by IWA DirectSockets.
As the 3
chrome.sockets.* APIs are
allowlisted for the SecureShell extension on all platforms, but IIUC your email, SecureShell has already moved to DirectSockets (caveat the promotion to stable), while the Terminal
app is still using the sockets APIs.
If my understanding is correct, and assuming that Terminal is a Chrome App, then I think it would be safe to remove the Chrome App code from WML builds after the promotion lands. In fact, Chrome Apps are already completely blocked from execution in WML.
I am currently removing the code ONLY from WML builds. The full Chrome Apps Deprecation from ChromeOS is scheduled to be completed in 2028Q1.
About the testing on Linux you mention, are you talking about the Terminal app, or the SecureShell extension?
The value of dropping the WML implementations comes from the Chrome teams on WML: they have been requesting the removal of Chrome Apps related code for years, as they are after the simplification of the codebase and the removal of dependencies to simplify adding new features.
Giovanni