Steps to reproduce:
- Open an existing Gallery
- Go to Options tab
- Change or add Image width/ Image height/ Images per row
- If you now click on "Apply changes", it will say Something went wrong
- If you click on "Cancel", VE crashes
Also, when the cursor is on those fields, the following error appears in the console:
Error: Permission denied to access property "parentNode"
Error: Permission denied to access property "nodeType"
Note: This is not relevant to the recent Gallery changes, since it's already happening on production (en.wiki). But since it's a crash issue, we should probably fix it soon.