Web applet adds a ton of variables to global scope

Christian Perfect shared this question 3 years ago
Answered

I've come across a GeoGebra material which seems to fill up the global scope with about 8000 variables with minified names: https://www.geogebra.org/m/y4aFfH8q

As far as I can tell, it's not doing anything particularly clever: it defines a few numbers, and then plots some functions based on those numbers. There's nothing in the global javascript field that I can see.

Since I noticed this problem because it broke the Numbas question which embeds it, I assume that this has only started happening recently. The question was originally written about 4 months ago.

This doesn't happen with other materials I've looked at, picking randomly from the geogebratube front page, but does happen for this material in both Chrome and Firefox.

Any idea what's causing this?

Comments (3)

photo
1

Is this one any better? I've changed it to use NDerivative[ ] so that the CAS isn't loaded:

https://www.geogebra.org/m/BsRYG6PV

photo
1

That worksheet is better in that it doesn't pollute the global scope as much. Is fixing the CAS out of the question?

photo
1

Is the CAS any better in the latest version (392)?

© 2020 International GeoGebra Institute