CacheProvider causes SVG loading to fail in private Firefox windows
Fabilin opened this issue · 1 comments
Fabilin commented
Describe the bug
When opening an app that uses InlineSVG's CacheProvider in a Firefox private browsing window, SVG loading throws an error titled "This operation is insecure". This seems to be caused by ServiceWorker-related operations getting denied.
Your minimal, reproducible example
https://codesandbox.io/s/serverless-dream-36kds6
Steps to reproduce
- Open Firefox in private browsing mode
- Try to load a cached InlineSVG
- Fail
Expected behavior
Global caching should probably be force-disabled when service worker APIs are unavailable.
How often does this bug happen?
Every time
Screenshots or Videos
Platform
- Browser: Firefox (119.0b8)
react-inlinesvg version
4.0.5
TypeScript version
4.8.4
Build tool
No response
Additional context
No response
gilbarbara commented
Hey @Fabilin
Fixed in 4.0.6
Thanks