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

[release/8.0] Fix copy buttons #3584

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 11, 2024

Backport of #3581 to release/8.0

/cc @JamesNK

Customer Impact

The recently introduced CSP causes copy buttons to fail. They use inline scripts (onclick attribute) which is locked down by CSP.

Fix is to move to a global click event and use event bubbling.

Testing

Manual in Chrome/Edge.
Safari has had different behavior in the past. I'm confident the change here will continue to work in Safari. However, we should get testing in Safari when time is available. I don't think it should block this PR. Worst case, we go from broken for everyone, to broken for Safari. Can improve in the future.

Risk

Low

Regression?

Yes

Microsoft Reviewers: Open in CodeFlow

@dotnet-policy-service dotnet-policy-service bot added the Servicing-consider Issue for next servicing release review label Apr 11, 2024
@danmoseley danmoseley added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Apr 11, 2024
@danmoseley danmoseley merged commit 05c1b15 into release/8.0 Apr 11, 2024
7 checks passed
@danmoseley danmoseley deleted the backport/pr-3581-to-release/8.0 branch April 11, 2024 04:35
@danmoseley danmoseley mentioned this pull request Apr 12, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-dashboard Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants