MCPcopy
hub / github.com/garrytan/gstack / onMainFrameNavigated

Method onMainFrameNavigated

browse/src/tab-session.ts:174–179  ·  view source on GitHub ↗

* Called on main-frame navigation to clear stale refs, frame context, and any * load-html replay metadata. Runs for every main-frame nav — explicit goto/back/ * forward/reload AND browser-emitted navigations (link clicks, form submits, JS * redirects, OAuth). Without clearing loadedHtml her

()

Source from the content-addressed store, hash-verified

172 * viewport --scale.
173 */
174 onMainFrameNavigated(): void {
175 this.clearRefs();
176 this.activeFrame = null;
177 this.loadedHtml = null;
178 this.loadedHtmlWaitUntil = undefined;
179 }
180
181 // ─── Loaded HTML (load-html replay) ───────────────────────
182

Callers 2

wirePageEventsMethod · 0.80

Calls 1

clearRefsMethod · 0.95

Tested by

no test coverage detected