MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / instance

Method instance

front_end/core/sdk/FrameManager.ts:44–51  ·  view source on GitHub ↗
({forceNew}: {
    forceNew: boolean,
  } = {forceNew: false})

Source from the content-addressed store, hash-verified

42 }
43
44 static instance({forceNew}: {
45 forceNew: boolean,
46 } = {forceNew: false}): FrameManager {
47 if (!Root.DevToolsContext.globalInstance().has(FrameManager) || forceNew) {
48 Root.DevToolsContext.globalInstance().set(FrameManager, new FrameManager(TargetManager.instance()));
49 }
50 return Root.DevToolsContext.globalInstance().get(FrameManager);
51 }
52
53 static removeInstance(): void {
54 Root.DevToolsContext.globalInstance().delete(FrameManager);

Callers 15

resetSavedSettingFunction · 0.45
assertSavedSettingStateFunction · 0.45
queryObjectsRequestedMethod · 0.45
constructorMethod · 0.45
hideDOMNodeHighlightMethod · 0.45
muteHighlightMethod · 0.45
unmuteHighlightMethod · 0.45
highlightRectMethod · 0.45
clearHighlightMethod · 0.45

Calls 3

setMethod · 0.65
getMethod · 0.65
hasMethod · 0.45

Tested by 5

resetSavedSettingFunction · 0.36
assertSavedSettingStateFunction · 0.36
getSettingFunction · 0.36
checkRequestOverrideFunction · 0.36
testSelectSymbolSourceFunction · 0.36