(tabId)
| 6066 | } |
| 6067 | |
| 6068 | async function prepareStep8DebuggerClick(tabId) { |
| 6069 | await ensureStep8SignupPageReady(tabId, { |
| 6070 | timeoutMs: 15000, |
| 6071 | logMessage: '步骤 8:认证页内容脚本已失联,正在恢复后继续定位按钮...', |
| 6072 | }); |
| 6073 | const result = await sendToContentScriptResilient('signup-page', { |
| 6074 | type: 'STEP8_FIND_AND_CLICK', |
| 6075 | source: 'background', |
| 6076 | payload: {}, |
| 6077 | }, { |
| 6078 | timeoutMs: 15000, |
| 6079 | retryDelayMs: 600, |
| 6080 | logMessage: '步骤 8:认证页正在切换,等待 OAuth 同意页按钮重新就绪...', |
| 6081 | }); |
| 6082 | |
| 6083 | if (result?.error) { |
| 6084 | throw new Error(result.error); |
| 6085 | } |
| 6086 | |
| 6087 | return result; |
| 6088 | } |
| 6089 | |
| 6090 | async function triggerStep8ContentStrategy(tabId, strategy) { |
| 6091 | await ensureStep8SignupPageReady(tabId, { |
no test coverage detected