(tabId)
| 178 | } |
| 179 | |
| 180 | function handleValidatorNotPresent(tabId) { |
| 181 | updateTabStatus(tabId, globals.validatorNotPresentIconPrefix, |
| 182 | globals.validatorNotPresentTitle, globals.validatorNotPresentBadge, |
| 183 | globals.validatorNotPresentBgColor); |
| 184 | chrome.tabs.get(tabId, () => { |
| 185 | if (!chrome.runtime.lastError) { |
| 186 | chrome.action.setPopup({ |
| 187 | tabId, |
| 188 | popup: globals.validatorNotPresentPopup, |
| 189 | }); |
| 190 | } |
| 191 | }); |
| 192 | } |
| 193 | |
| 194 | /** |
| 195 | * Returns whether the url is forbidden for the extension to act on. |
no test coverage detected