Skip to content

Browser tabs: tidy page text for data: pages; docs on pop-ups after a click - #27

Merged
PieMH merged 1 commit into
mainfrom
fix/browser-tabs-page-text
Oct 19, 2026
Merged

PieMH merged 1 commit into
mainfrom
fix/browser-tabs-page-text

Conversation

@PieMH

@PieMH PieMH commented Oct 19, 2026

Copy link
Copy Markdown
Owner

Follow-up to #26. This commit was pushed to agents-team/browser-tabs minutes after #26 merged, so it never made it into main.

Two findings from a hands-on test of the tabs:

  • Messages for data: pages: new_tab and navigate gave an empty address and showed the data: URL as the title, for example "Loaded (title: data:text/html,…)". The tab list also printed the whole data: URL twice. Now one helper, BrowserPanel.Page, writes both messages. It gives the real address, through location.href, since WebView2 reports no Source for a data: page. It leaves out a title that only repeats the address, and cuts addresses at 80 characters.
  • Popup wording in the docs: the code acts like any browser. A page can still open one popup in the few seconds after a click, and the click tool's clicks count. README, PRIVACY.md and CLAUDE.md said popups open "only when user-initiated" without saying this. They now do. The behavior is unchanged: addresses outside the allowed list are still refused, and there are still at most 20 tabs.

Checks: dotnet build -c Release has 0 warnings, dotnet test -c Release passes 445/445 (4 new Page tests), and --smoke exits 0.

🤖 Generated with Claude Code

@PieMH
PieMH merged commit 71f4282 into main Oct 19, 2026
1 check passed
@PieMH
PieMH deleted the fix/browser-tabs-page-text branch October 19, 2026 13:14
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 participant