microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
107.04k stars 6.31k forks source link

SVGs sometimes blocked in Explorer #33369

Open dbookstaber opened 3 weeks ago

dbookstaber commented 3 weeks ago

Microsoft PowerToys version

0.79.0

Installation method

Microsoft Store

Running as admin

Yes

Area(s) with issue?

File Explorer: Preview Pane, File Explorer: Thumbnail preview

Steps to reproduce

Some SVG files show contents in icon and in preview pane. Others are blocked and only show associated app icon and in the preview pane the message, "Some elements have been blocked to help prevent the sender from identifying your computer. Open this item to view all elements."

I have found that the SVGs that are blocked on my system are those that contain mesh gradients created in Inkscape, which are coded like this:

  <script
     id="script1"
     type="text/javascript">
!function(){const t=&quot;http://www.w3.org/2000/svg&quot;,e=&quot;http://www.w3.org/1999/xlink&quot;,s=&quot;http://www.w3.org/1999/xhtml&quot;,r=2;if(document.createElementNS(t,&quot;meshgradient&quot;).x)return;const n=(t,e,s,r)=&gt;{let 

...

✔️ Expected Behavior

This is not a security risk and should not be blocked.

❌ Actual Behavior

Silently replaces icon with file association.

Other Software

No response

github-actions[bot] commented 3 weeks ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.