收口宿主用户交互超时
将宿主用户交互长操作超时提升到共享 HostBridge 契约 让 H5 HostBridge facade 复用共享用户交互超时 增加原生壳门禁拦截 H5 facade 手写交互超时 补充 HostBridge 测试、壳方案和共享决策记录
This commit is contained in:
@@ -1792,9 +1792,15 @@ if (nativeAppHostBridgeSource.includes("'host_bridge_request'")) {
|
||||
if (!h5HostBridgeSource.includes('HOST_BRIDGE_RUNTIME_REFRESH_TIMEOUT_MS,')) {
|
||||
throw new Error('H5 HostBridge facade must import shared runtime refresh timeout');
|
||||
}
|
||||
if (!h5HostBridgeSource.includes('HOST_BRIDGE_USER_INTERACTION_TIMEOUT_MS,')) {
|
||||
throw new Error('H5 HostBridge facade must import shared user interaction timeout');
|
||||
}
|
||||
if (h5HostBridgeSource.includes('HOST_RUNTIME_REFRESH_TIMEOUT_MS')) {
|
||||
throw new Error('H5 HostBridge facade must not redeclare runtime refresh timeout');
|
||||
}
|
||||
if (h5HostBridgeSource.includes('timeoutMs: 30000')) {
|
||||
throw new Error('H5 HostBridge facade must not redeclare user interaction timeout');
|
||||
}
|
||||
for (const snippet of [
|
||||
'HOST_BRIDGE_DEFAULT_REQUEST_TIMEOUT_MS',
|
||||
'HOST_BRIDGE_MAX_REQUEST_TIMEOUT_MS',
|
||||
|
||||
Reference in New Issue
Block a user