-
Notifications
You must be signed in to change notification settings - Fork 139
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
Remove third party-requests #159
Comments
So the offending lines are snakeviz/snakeviz/templates/viz.html Lines 248 to 276 in a236c7b
To address privacy concerns this could probably be changed into an opt-in CLI flag:
|
Oh, didn't even know there already are bundled versions. With the versions loaded from CDN being hardcoded like that I also fail to see If there is an advantage, I'm not at all against offering that option and a CLI flag seems |
There's a reason there's both. SnakeViz mostly operates as a single page app that can be loaded once from the local server and then does not need to communicate with the local server again, so the overall browser can load the local vendor JS then. The exception is that snakeviz uses web workers, which need to load the JS every time one is booted up (which happens when interacting with the graphic). There are contexts in which people use snakeviz without the local server running, especially when using it in a jupyter notebook via the magic command. When that's the case the only option for booting up a web worker is to get the vendor JS from a CDN since the local server is not running. We might be able to rearrange things so we try the local server first, but I don't want to break the usage contexts in which the local server is not running. |
I'd say we turn off the CDN loading behaviour, add the |
I just noticed that snakeviz tries loading data from
cdnjs.cloudflare.com
, which is behavior that actively makes snakeviz users trackable to cloudflare – amongst other things exposing the full filepath of the currently read .prof file, which will most often also expose things like usernames.Please stop doing that and remove all third-party requests.
JS dependencies should be bundled in order to avoid breaking peoples privacy.
The text was updated successfully, but these errors were encountered: