(tabId)
| 154 | } |
| 155 | |
| 156 | async function pingContentScriptOnTab(tabId) { |
| 157 | if (!Number.isInteger(tabId)) return null; |
| 158 | try { |
| 159 | return await chrome.tabs.sendMessage(tabId, { |
| 160 | type: 'PING', |
| 161 | source: 'background', |
| 162 | payload: {}, |
| 163 | }); |
| 164 | } catch { |
| 165 | return null; |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | async function waitForTabUrlFamily(source, tabId, referenceUrl, options = {}) { |
| 170 | const { timeoutMs = 15000, retryDelayMs = 400 } = options; |
no outgoing calls
no test coverage detected