MCPcopy
hub / github.com/philc/vimium / getFrameIdsForTab

Function getFrameIdsForTab

background_scripts/main.js:506–511  ·  view source on GitHub ↗
(tabId)

Source from the content-addressed store, hash-verified

504// or iFrames which contain chrome-extension:// URLs, even if those pages are listed in Vimium's
505// web_accessible_resources in manifest.json.
506async function getFrameIdsForTab(tabId) {
507 // getAllFrames unfortunately excludes frames and iframes from chrome-extension:// URLs.
508 // In Firefox, by contrast, pages with moz-extension:// URLs are included.
509 const frames = await chrome.webNavigation.getAllFrames({ tabId: tabId });
510 return frames.map((f) => f.frameId);
511}
512
513const HintCoordinator = {
514 // Forward the message in "request" to all frames the in sender's tab.

Callers 2

nextFrameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected