* 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
()
| 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 |
no test coverage detected