(tabId, changeInfo, tab, signupTabId)
| 3497 | } |
| 3498 | |
| 3499 | function getStep8CallbackUrlFromTabUpdate(tabId, changeInfo, tab, signupTabId) { |
| 3500 | if (typeof navigationUtils !== 'undefined' && navigationUtils?.getStep8CallbackUrlFromTabUpdate) { |
| 3501 | return navigationUtils.getStep8CallbackUrlFromTabUpdate(tabId, changeInfo, tab, signupTabId); |
| 3502 | } |
| 3503 | if (!Number.isInteger(signupTabId) || tabId !== signupTabId) return ''; |
| 3504 | const candidates = [changeInfo?.url, tab?.url]; |
| 3505 | for (const candidate of candidates) { |
| 3506 | if (isLocalhostOAuthCallbackUrl(candidate)) return candidate; |
| 3507 | } |
| 3508 | return ''; |
| 3509 | } |
| 3510 | |
| 3511 | function getSourceLabel(source) { |
| 3512 | if (typeof loggingStatus !== 'undefined' && loggingStatus?.getSourceLabel) { |
nothing calls this directly
no test coverage detected