SharedWorker constructor should support WorkerOptions |
|
Issue descriptionThe 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 |
|
►
Sign in to add a comment |
|
Comment 1 by nhiroki@chromium.org
, Nov 22