I'm experimenting with instantiating an inline Web Worker using a Blob by passing in a code string that I can first check, and amend (as described here).
If the code string is unknown, can I disallow it from using (say) XmlHttpRequest?
For instance, would prepending
XmlHttpRequest = null;
at the top of the script string prevent the code following it from finding a way to instantiate XmlHttpRequest (with e.g. var xhr = new self['Xml'+'HttpRequest']
)? Or is trying that a lost cause? Thanks!