Revert removal of deprecated [Native] types in network_param.mojom
Minor
提交哈希:
11fdd22452f8907c254c47b39ef70c53e82890ee
提交时间: 2026-04-14 15:05:01
影响等级: Minor
生成工具: chromium-watcher
上游审核链接:
查看上游审核 🔗
📋 摘要
This commit reverts c565345fc495, which replaced [Native] types in network_param.mojom
(AuthCredentials, CertVerifyResult, HttpResponseHeaders, SSLInfo, X509Certificate, etc.)
with explicit Mojo struct definitions split across multiple new .mojom files. The revert
was triggered because the original change broke the NavigationURLLoaderImplTest.RedirectDuringURLLoader
test. After the revert, these types are restored as [Native] declarations in network_param.mojom,
the split-out .mojom files (x509_certificate.mojom, ssl_info.mojom, auth.mojom, etc.) and their
corresponding mojom traits implementations are removed, and remote_cocoa's
native_widget_ns_window.mojom import is changed back from x509_certificate.mojom to
network_param.mojom.
(AuthCredentials, CertVerifyResult, HttpResponseHeaders, SSLInfo, X509Certificate, etc.)
with explicit Mojo struct definitions split across multiple new .mojom files. The revert
was triggered because the original change broke the NavigationURLLoaderImplTest.RedirectDuringURLLoader
test. After the revert, these types are restored as [Native] declarations in network_param.mojom,
the split-out .mojom files (x509_certificate.mojom, ssl_info.mojom, auth.mojom, etc.) and their
corresponding mojom traits implementations are removed, and remote_cocoa's
native_widget_ns_window.mojom import is changed back from x509_certificate.mojom to
network_param.mojom.
🎯 影响分析
This revert has minimal impact on WebView2Mac. The Edge downstream repository's
native_widget_ns_window.mojom already imports network_param.mojom (not the briefly
split-out x509_certificate.mojom), and downstream's network_param.mojom already retains
the [Native] type declarations (AuthCredentials, CertVerifyResult, HttpResponseHeaders,
SSLInfo, X509Certificate). This revert brings upstream back in alignment with downstream,
avoiding merge conflicts or functional changes. The Remote Cocoa NativeWidgetNSWindow
interface itself is unchanged — only the import path is restored to match downstream.
The network-layer mojom types reverting to [Native] declarations also do not affect
WebView2Mac runtime behavior, as the underlying C++ implementations and IPC serialization
mechanisms remain the same.
native_widget_ns_window.mojom already imports network_param.mojom (not the briefly
split-out x509_certificate.mojom), and downstream's network_param.mojom already retains
the [Native] type declarations (AuthCredentials, CertVerifyResult, HttpResponseHeaders,
SSLInfo, X509Certificate). This revert brings upstream back in alignment with downstream,
avoiding merge conflicts or functional changes. The Remote Cocoa NativeWidgetNSWindow
interface itself is unchanged — only the import path is restored to match downstream.
The network-layer mojom types reverting to [Native] declarations also do not affect
WebView2Mac runtime behavior, as the underlying C++ implementations and IPC serialization
mechanisms remain the same.
受影响的类:
remote_cocoa::mojom::NativeWidgetNSWindow (import path only)
network::mojom::AuthChallengeInfo
network::mojom::X509Certificate
network::mojom::SSLInfo
network::mojom::HttpResponseHeaders
network::mojom::CertVerifyResult