Skip to content

Add preference to show/hide browser toolbar#659

Open
kermanx wants to merge 1 commit into
gnachman:masterfrom
kermanx:browser-toolbar-preference
Open

Add preference to show/hide browser toolbar#659
kermanx wants to merge 1 commit into
gnachman:masterfrom
kermanx:browser-toolbar-preference

Conversation

@kermanx
Copy link
Copy Markdown

@kermanx kermanx commented May 2, 2026

Summary

Adds a profile preference to control the visibility of the browser's navigation toolbar.

Motivation

Browser profiles in iTerm2 embed a full web view with a navigation toolbar. Some use cases—such as plugins or extensions that host their own chrome-less web content—benefit from having the toolbar hidden to maximize screen real estate and avoid redundant UI.

Changes

  • Add KEY_BROWSER_SHOW_TOOLBAR profile key (default: YES)
  • Register the key in preference validation and default value maps
  • Update iTermBrowserViewController.layoutSubviews() to conditionally hide the toolbar and adjust the web view frame

Backward Compatibility

Defaults to YES, preserving the existing behavior for all current users.

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