TypeError when using waterfox

When ever I try to test my code I kept on getting TypeError: can’t redefine non-configurable property “getElementsByName” this error only occur on waterfox and not on google chrome. Is there any solution for this ?

Open the browser console, I suspect it will say something like Content Security Policy: The page's settings blocked the loading of a resource at ......

I don’t know anything about Waterfox, but if it works anything like the Tor browser and you have the above message, it doesn’t like local storage and is blocking things related to that: there may not be a way to unblock this issue (I have no idea whether it can be unblocked in the settings) and I can only suggest using Chrome (I’m looking at the same issue with an earlier version of Tor browser and the fix was to upgrade)