'name' attribute for dedicated workers

This feature allows specifying the worker’s name in an optional constructor argument. This lets you distinguish dedicated workers by name when you have multiple workers with the same URL. Developers can print ‘name’ in the DevTools console which will make it easier to debug workers. When the ‘name’ param is omitted, an empty string is used as the default value. For more information, see the discussion at https://github.com/whatwg/html/issues/2477.

Specification

Working draft or equivalent

Status in Chromium

Blink>Workers


Enabled by default (tracking bug) in:

  • Chrome for desktop release 70
  • Chrome for Android release 70
  • Android WebView release 70
  • Opera release 57
  • Opera for Android release 57

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owners

Last updated on 2018-08-31