Can I determine if Javascript is working in the context of a Web Worker?
Look for type one of the objects (document, window, parent) that the web work context cannot access.