Even with workers, the intent is that the behavior of implementations can be thought of as completely serializing the execution of all scripts in all browsing contexts.
the HTML and DOM APIs are designed such that no script can ever detect the simultaneous execution of other scripts