fix: stabilize iCloud login helper and verification polling
- 合并 PR #207 的核心改动:修复 iCloud 临时网络/上下文错误分支的 safeActionLabel TDZ 崩溃风险,并允许登录验证码轮询首次读取当前可见首行验证码。 - 本地补充修复:无,本轮仅完成审查和定向验证。 - 影响范围:background.js iCloud 登录辅助、content/icloud-mail.js 邮件轮询、对应 iCloud 回归测试。
This commit is contained in:
@@ -5485,7 +5485,6 @@ async function withIcloudLoginHelp(actionLabel, action) {
|
||||
if (shouldEmitIcloudTransientLog(`${safeActionLabel}:final`)) {
|
||||
await addLog(`iCloud:${safeActionLabel}受网络/上下文波动影响:${getErrorMessage(err)}`, 'warn');
|
||||
}
|
||||
const safeActionLabel = String(actionLabel || '操作').trim() || '操作';
|
||||
const transientError = new Error(`iCloud:${safeActionLabel}受网络/上下文波动影响,请稍后重试。`);
|
||||
transientError.code = 'ICLOUD_TRANSIENT_CONTEXT';
|
||||
transientError.actionLabel = safeActionLabel;
|
||||
|
||||
Reference in New Issue
Block a user