Skip to content

Conversation

@github-actions
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

@ghost ghost added the area-dashboard label Apr 11, 2024
@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
@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.

4 participants