WorkerGlobalScope.prototype is [object DedicatedWorkerGlobalScopePrototype] but should be [object WorkerGlobalScopePrototype]. This is causing failures on: http://w3c-test.org/workers/interfaces.worker
Seems related to this in the bindings generator: if (IsDOMGlobalObject($interface)) { push(@$outputArray, " putDirect(vm, vm.propertyNames->prototype, globalObject.getPrototypeDirect(), DontDelete | ReadOnly | DontEnum);\n"); IsDOMGlobalObject() returns true for both WorkerGlobalScope and DedicatedWorkerGlobalScope.
Created attachment 280856 [details] WIP Patch
Expected: DedicatedWorkerGlobalScope.prototype.toString() === "[object DedicatedWorkerGlobalScopePrototype]": true Object.getPrototypeOf(DedicatedWorkerGlobalScope.prototype) === WorkerGlobalScope.prototype: true WorkerGlobalScope.prototype.toString() === "[object WorkerGlobalScopePrototype]": true Object.getPrototypeOf(WorkerGlobalScope.prototype) === EventTarget.prototype: true But got: DedicatedWorkerGlobalScope.prototype.toString() === "[object DedicatedWorkerGlobalScopePrototype]": true Object.getPrototypeOf(DedicatedWorkerGlobalScope.prototype) === WorkerGlobalScope.prototype: false WorkerGlobalScope.prototype.toString() === "[object WorkerGlobalScopePrototype]": false Object.getPrototypeOf(WorkerGlobalScope.prototype) === EventTarget.prototype: false
Created attachment 280879 [details] Patch
Comment on attachment 280879 [details] Patch Clearing flags on attachment: 280879 Committed r201852: <http://trac.webkit.org/changeset/201852>
All reviewed patches have been landed. Closing bug.