收口宿主运行态回读超时
将原生宿主 runtime 回读短超时提升到共享 HostBridge 契约 让 H5 HostBridge facade 复用共享 runtime 回读超时 增加原生壳门禁拦截本地 runtime 回读超时重声明 补充 runtime 回读测试、壳方案和共享决策记录
This commit is contained in:
@@ -976,10 +976,11 @@ function assertH5HostBridgePayloadBoundaries() {
|
||||
'HOST_BRIDGE_DOCUMENT_MIME_TYPES',
|
||||
'HOST_BRIDGE_IMAGE_MIME_TYPES',
|
||||
'HOST_BRIDGE_AUDIO_MIME_TYPES',
|
||||
'HOST_BRIDGE_RUNTIME_REFRESH_TIMEOUT_MS',
|
||||
]) {
|
||||
if (!h5HostBridgeSource.includes(`${sharedBoundary},`)) {
|
||||
throw new Error(
|
||||
`H5 HostBridge facade must import shared payload boundary ${sharedBoundary}`,
|
||||
`H5 HostBridge facade must import shared HostBridge boundary ${sharedBoundary}`,
|
||||
);
|
||||
}
|
||||
if (new RegExp(`const ${sharedBoundary}\\s*=\\s*new Set`).test(h5HostBridgeSource)) {
|
||||
@@ -1009,6 +1010,12 @@ function assertH5HostBridgePayloadBoundaries() {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (h5HostBridgeSource.includes('HOST_RUNTIME_REFRESH_TIMEOUT_MS')) {
|
||||
throw new Error(
|
||||
'H5 HostBridge facade must use shared HOST_BRIDGE_RUNTIME_REFRESH_TIMEOUT_MS',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function assertH5NativeAppTransportTimeoutBoundaries() {
|
||||
|
||||
Reference in New Issue
Block a user