-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix: Invalid SVG Blob Formatting #41
base: master
Are you sure you want to change the base?
Conversation
cc @expressvpn-andre-l / @expressvpn-tom-l SVGs are no longer rendering correctly for users of ExpressVPN who use www.canva.com - is there any chance you could expedite a hotfix 🙏 ? This bugs prevents users from viewing SVGs rendered via URLs created from blobs as shown below: var blob = new Blob([svgData], { type: 'image/svg+xml' });
var url = URL.createObjectURL(blob); If there's anything I can do to help, please let me know! |
Hey @taj-p Thanks for raising this. We have just allocated time to fix it and will start working on it very soon. Thank you |
Thanks @xv-bruno-m - Yeah of course! Sorry it took me so long - I needed to open an account. You should be able to view this design. It should look like this: Instead, with ExpressVPN on, you see this: (We catch the error and show the user a fallback image since the SVG becomes invalid) |
bump @xv-bruno-m - have you had a chance to work on this? |
Haven't had a chance yet but it has been prioritized. I believe we may be able to ship a fix in 2 weeks or so. |
Hey @taj-p We will start the rollout of the build that includes a fix for this issue - v6.0.4.6091 Cheers |
Nice thank you! 🙏🥳 |
👋 @xv-bruno-m, (same from Canva) we are experiencing the same problem when building our MPEG-DASH manifest (For adaptive video playback).
It breaks at the same line of code in gps.js with an error
Please advise |
Hey Could you please make a codepen/jsbin with the code that breaks it? Thanks |
Intent
The extension is currently corrupting SVG type Blobs because of the monkeypatched
Blob
incorrectly injects the script tag into the resulting SVG.We've found that our users cannot view SVGs on our website while ExpressVPN is enabled. This is a big problem for our site which depends on viewing and manipulating SVGs.
cc @expressvpn-andre-l / @expressvpn-tom-l
Before / After
You can see an example of how SVGs were encoded before these changes here.
You can see an example of SVG rendering after these changes here.
Note: I quickly hacked together these changes. Please amend as you see fit!