锁定移动壳注入消息来源字段

补充移动壳 HostBridge 注入 source 与 origin 断言

更新移动壳配置门禁反查注入来源测试
This commit is contained in:
2026-06-20 22:10:19 +08:00
parent a3751f18af
commit 927c4d5f4e
2 changed files with 10 additions and 0 deletions
@@ -2612,6 +2612,9 @@ for (const snippet of [
'mobile HostBridge message injection failed',
"test('drops delayed HostBridge responses after shell unmount'",
"id: 'network-request-1'",
'expectInjectedHostBridgeMessageSource',
"expect(script).toContain('origin: window.location.origin')",
"expect(script).toContain('source: window')",
"type: 'genarrative.mobile.historyState'",
'mobile host event failed for network.statusChanged',
'external WebView navigation native failures stay outside the WebView',