feat(chromium): expose tab strip metadata via page.tabInfo() - #42355
Yury Semikhatsky (yury-s) wants to merge 2 commits into
Conversation
Returns the real browser tab state (active, index, pinned, groupId, windowId) for a page, using Target.embedderData available in Chrome 150+. Returns null on other browsers, older Chromium and the headless shell. Concurrent calls share a single browser-wide query. The browser_tabs MCP tool now marks the tab that is actually visible to the user. Fixes: microsoft#41873
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Test results for "tests 1"3 flaky51359 passed, 1238 skipped Merge workflow run. |
Test results for "MCP"66 failed 8076 passed, 1361 skipped Merge workflow run. |
🔴 The MCP failures are caused by this PRHi, I'm the Playwright bot and I took a look at the failing CI. The 66 MCP failures all trace to the new DetailsOverall: Caused by this PR
The two groups are mirror images of one root cause. Reconciling every Pre-existing flake / infra
Not a real failure
Triaged by the Playwright bot. Triaged by the Playwright bot - agent run |
Summary
page.tabInfo()returns the real tab strip state (active,index,pinned,groupId,windowId) fromTarget.embedderData(Chrome 150+). Returnsnullon other browsers, older Chromium and the headless shell.browser_tabsMCP tool marks the tab that is actually visible to the user.Fixes #41873