MCPcopy
hub / github.com/RetireJS/retire.js / onTabActivate

Function onTabActivate

firefox/lib/main.js:91–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89}
90
91function 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
102function onTabClose(tab) {
103 tabInfo.delete(tab.id);

Callers

nothing calls this directly

Calls 1

updateButtonFunction · 0.85

Tested by

no test coverage detected