improvements to communicating-with-web-workers and applying-user-agent-behaviors