Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let folks disable OSC 52 #18449

Merged
merged 6 commits into from
Jan 24, 2025
Merged

Let folks disable OSC 52 #18449

merged 6 commits into from
Jan 24, 2025

Conversation

DHowett
Copy link
Member

@DHowett DHowett commented Jan 21, 2025

This pull request introduces a new profile setting, compatibility.allowOSC52, which defaults to true. When disabled, it will not allow applications to write to the clipboard.

Security-minded folks may choose to disable it.

@htcfreek
Copy link

htcfreek commented Jan 22, 2025

Security-minded folks may choose to disable it.

Is it worth to have a group policy?

@DHowett
Copy link
Member Author

DHowett commented Jan 22, 2025

Is it worth to have a group policy?

At this point, probably not. In the future if we ever add support for VT applications reading the clipboard (off by default,) we could have a policy that disallows users from enabling it.

@DHowett
Copy link
Member Author

DHowett commented Jan 23, 2025

The test agents are currently pushing up daisies, so that's that then.

Copy link
Member

@carlos-zamora carlos-zamora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • schema
  • docs

src/cascadia/TerminalSettingsModel/TerminalSettings.h Outdated Show resolved Hide resolved
Comment on lines 74 to 81
<!-- Allow VT Clipboard Writing -->
<local:SettingContainer x:Uid="Profile_AllowVtClipboardWrite"
ClearSettingValue="{x:Bind Profile.ClearAllowVtClipboardWrite}"
HasSettingValue="{x:Bind Profile.HasAllowVtClipboardWrite, Mode=OneWay}"
SettingOverrideSource="{x:Bind Profile.AllowVtClipboardWriteOverrideSource, Mode=OneWay}">
<ToggleSwitch IsOn="{x:Bind Profile.AllowVtClipboardWrite, Mode=TwoWay}"
Style="{StaticResource ToggleSwitchInExpanderStyle}" />
</local:SettingContainer>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think the page would look nicer if this was below "Allow VT Checksum Report"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{35DEB2DB-8315-4923-A666-2E178883A34C}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah thanks, yes

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jan 23, 2025
Copy link
Member

@lhecker lhecker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is set to true everywhere else

^ What Carlos said. Otherwise ✅

@DHowett
Copy link
Member Author

DHowett commented Jan 23, 2025

@carlos-zamora alas, reapproval is required

@DHowett DHowett merged commit 33556fb into main Jan 24, 2025
16 of 20 checks passed
@DHowett DHowett deleted the dev/duhowett/osc-not-52-that-sfor-sure branch January 24, 2025 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Consider
Status: To Consider
Development

Successfully merging this pull request may close these issues.

4 participants