Skip to content

fix(mcp): use waitUntil commit for navigate back/forward#41153

Merged
yury-s merged 1 commit into
microsoft:mainfrom
yury-s:fix-1635
Jun 5, 2026
Merged

fix(mcp): use waitUntil commit for navigate back/forward#41153
yury-s merged 1 commit into
microsoft:mainfrom
yury-s:fix-1635

Conversation

@yury-s

@yury-s yury-s commented Jun 5, 2026

Copy link
Copy Markdown
Member

Summary

  • browser_navigate_back / browser_navigate_forward defaulted to waitUntil: 'load', which can time out during history traversal / bfcache restore even though the page already navigated. They now wait for commit.

Fixes microsoft/playwright-mcp#1635

History traversal / bfcache restore can update the URL without Playwright
observing the `load` lifecycle event, causing browser_navigate_back and
browser_navigate_forward to time out even though navigation succeeded.
Wait for `commit` instead.

Fixes: microsoft/playwright-mcp#1635
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Test results for "MCP"

1 failed
❌ [firefox] › mcp/annotate.spec.ts:251 › should start dashboard and annotate when no dashboard is running @mcp-windows-latest-firefox

7242 passed, 1103 skipped


Merge workflow run.

@yury-s yury-s merged commit 0492b3b into microsoft:main Jun 5, 2026
17 of 18 checks passed
@yury-s yury-s deleted the fix-1635 branch June 5, 2026 05:12
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.

browser_navigate_back times out even though page.goBack succeeds in browser

2 participants