MCPcopy
hub / github.com/ChromeDevTools/chrome-devtools-mcp / splitAfterNavigation

Method splitAfterNavigation

src/PageCollector.ts:146–154  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

144 }
145
146 protected splitAfterNavigation(page: Page) {
147 const navigations = this.storage.get(page);
148 if (!navigations) {
149 return;
150 }
151 // Add the latest navigation first
152 navigations.unshift([]);
153 navigations.splice(this.maxNavigationSaved);
154 }
155
156 protected cleanupPageDestroyed(page: Page) {
157 const listeners = this.#listeners.get(page);

Callers 1

#initializePageMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected