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

replace innerHTML in showErrorMarker #5574

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dimovpetar
Copy link
Contributor

Make showErrorMarker CSP compliant.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Pull Request Checklist:

Copy link

codecov bot commented Jun 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.78%. Comparing base (a3277ea) to head (59e0c78).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5574   +/-   ##
=======================================
  Coverage   86.78%   86.78%           
=======================================
  Files         594      594           
  Lines       43017    43020    +3     
  Branches     7129     7130    +1     
=======================================
+ Hits        37331    37334    +3     
  Misses       5686     5686           
Flag Coverage Δ
unittests 86.78% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nightwing
Copy link
Member

Looks like this will escape the html twice, because it is escaped in

annoText = annoText ? lang.escapeHTML(annoText) : annotation.html || "";

and the tooltip uses innerHTML as well
this.setHtml(tooltipContent);

@dimovpetar
Copy link
Contributor Author

I guess this PR can be merged after #5575 is resolved then. Or do you have any proposals how to avoid this issue?

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.

None yet

2 participants