New issue
Advanced search Search tips

Issue 907749 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 3
Type: Bug

Blocking:
issue 655458



Sign in to add a comment

SharedWorker constructor should support WorkerOptions

Project Member Reported by nhiroki@chromium.org, Nov 22

Issue description

The HTML spec defines SharedWorker constructor takes DOMString or WorkerOptions as the second argument:

  Constructor(USVString scriptURL, optional (DOMString or WorkerOptions) options)

  https://html.spec.whatwg.org/multipage/workers.html#shared-workers-and-the-sharedworker-interface

However, the current implementation support only DOMString:

  Constructor(DOMString scriptURL, optional DOMString name = null)

In the current implementation, when WorkerOption is given, it's converted to String object whose value is "[object Object]". This is eventually used as a name of SharedWorker...

This bug fails following tests:
- http://w3c-test.org/workers/shared-worker-name-via-options.html
- http://w3c-test.org/workers/name-property.html
 
Blocking: 655458

Sign in to add a comment