Skip to content

Make tab navigation more robust against race conditions - #488

Open
dennisjlee wants to merge 1 commit into
plotly:mainfrom
dennisjlee:fix/navigation-load-events
Open

dennisjlee wants to merge 1 commit into
plotly:mainfrom
dennisjlee:fix/navigation-load-events

Conversation

@dennisjlee

@dennisjlee dennisjlee commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #487

Update tab.navigate() to be more robust against two kinds of race conditions:

  • receiving load events from the Chrome new tab page rather than the page we were trying to navigate to (or iframes on the target page)
  • receiving the wrong JS execution context (from an iframe, for instance)

AI Disclosure: I used Codex w/ ChatGPT 6 Astra to investigate and write the code for this fix

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1.5.1: intermittent ReferenceError: kaleido_scopes is not defined, because navigate() can return before the page has loaded

2 participants