MCPcopy Index your code
hub / github.com/philc/vimium / removeTab

Function removeTab

background_scripts/main.js:326–333  ·  view source on GitHub ↗
({ count, tab })

Source from the content-addressed store, hash-verified

324 return selectTab("last", request);
325 },
326 async removeTab({ count, tab }) {
327 await forCountTabs(count, tab, (tab) => {
328 // In Firefox, Ctrl-W will not close a pinned tab, but on Chrome, it will. We try to be
329 // consistent with each browser's UX for pinned tabs.
330 if (tab.pinned && bgUtils.isFirefox()) return;
331 chrome.tabs.remove(tab.id);
332 });
333 },
334 restoreTab: createRepeatCommand(async (request) => {
335 await chrome.sessions.restore(null);
336 }),

Callers

nothing calls this directly

Calls 2

forCountTabsFunction · 0.85
removeMethod · 0.80

Tested by

no test coverage detected