Settings

Theme

Adding Foreground Tab Tracking to the Chrome Devtools Protocol

browserbase.com

4 points by nikisweeting a month ago · 1 comment

Reader

nikisweetingOP a month ago

Historically tracking "which tab is in the foreground" has been impossible via CDP.

Libraries like Playwright and even Google's own puppeteer resorted to hacks like forcing users to foreground pages manually, or pretending "last opened == foreground".

After writing brittle state sync logic and workarounds for the last 2 years I got tired of dealing around this issue, so I contributed a fix upstream into Chromium!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection