收紧分享载荷边界
将 share.open 分享目标归一化提升到共享 HostBridge 契约 让 H5 facade 和 Expo 移动壳按共享分享边界发送与消费载荷 把原生分享 URL 统一映射到公开 H5 主站地址 增加分享载荷测试和三端壳总门禁反查 同步宿主壳协议文档和共享决策记录
This commit is contained in:
@@ -1047,6 +1047,19 @@ function assertH5HostBridgePayloadBoundaries() {
|
||||
'H5 HostBridge facade must normalize app.openExternalUrl payloads with the shared external URL boundary',
|
||||
);
|
||||
}
|
||||
if (
|
||||
!h5HostBridgeSource.includes(
|
||||
'absolutizeHostSharePayloadUrls(params),',
|
||||
) ||
|
||||
!h5HostBridgeSource.includes("normalizedPayload.status !== 'valid'") ||
|
||||
!h5HostBridgeSource.includes(
|
||||
"return await requestNativeHostBoolean(\n 'share.open',\n normalizedPayload.payload,\n );",
|
||||
)
|
||||
) {
|
||||
throw new Error(
|
||||
'H5 HostBridge facade must normalize share.open payloads with the shared share boundary',
|
||||
);
|
||||
}
|
||||
if (
|
||||
!h5HostBridgeSource.includes(
|
||||
'const clipboardText = normalizeHostBridgeClipboardText(text);',
|
||||
|
||||
Reference in New Issue
Block a user