锁定移动壳原生分享失败响应
移动壳原生分享面板失败返回稳定错误 移动壳分享测试覆盖原生失败不外泄 移动壳配置检查补充分享失败边界反查
This commit is contained in:
@@ -1646,6 +1646,7 @@ for (const snippet of [
|
||||
"throw invalidRequest('target is required')",
|
||||
'const normalizedTarget = normalizeHostBridgeShareOpenPayload(target);',
|
||||
"'share target is invalid'",
|
||||
"message: 'share unavailable'",
|
||||
'ok(request, true)',
|
||||
'resetMobileHostBridgeShareTargetForTest',
|
||||
]) {
|
||||
@@ -1669,8 +1670,10 @@ for (const snippet of [
|
||||
'resetMobileHostBridgeShareTargetForTest()',
|
||||
'uses cached work target when share.open has no explicit payload',
|
||||
'keeps the previous cached target when a new target is missing or invalid',
|
||||
'maps native share sheet failures to stable host errors',
|
||||
'does not fall back to cached target when explicit payload is unsafe',
|
||||
'rejects empty share requests before opening native share sheet',
|
||||
"message: 'share unavailable'",
|
||||
'https://app.genarrative.world/works/detail?work=PZ-00000001',
|
||||
'javascript:alert(1)',
|
||||
'expect(Share.share).not.toHaveBeenCalled()',
|
||||
|
||||
Reference in New Issue
Block a user