()
| 89 | } |
| 90 | |
| 91 | function onTabActivate() { |
| 92 | // Get the active tab id for the window that is in front. |
| 93 | let tabId = firefox.getIdForTabElement(tabUtil.getActiveTab(windowUtil.getMostRecentBrowserWindow())); |
| 94 | if (tabInfo.has(tabId)) { |
| 95 | updateButton(tabInfo.get(tabId).vulnerableCount); |
| 96 | } else { |
| 97 | updateButton(null); |
| 98 | } |
| 99 | console.log("tab activate"); |
| 100 | } |
| 101 | |
| 102 | function onTabClose(tab) { |
| 103 | tabInfo.delete(tab.id); |
nothing calls this directly
no test coverage detected