Bug 205253

Summary: Web Worker name is not passed to Worker local scope
Product: WebKit Reporter: jujjyl
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: alonzakai, cdumez, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: Unspecified   
OS: Unspecified   

jujjyl
Reported 2019-12-15 12:44:14 PST
Page a.html: <html><body><script> new Worker('worker.js', { name: 'testPassingNameToWorker'}); </script></body></html> File worker.js: console.log(this.name); console.log(name); // Using implicit this Expected: Should print 'testPassingNameToWorker' twice. Observed: Prints undefined and throws an exception on variable 'name' not being found. Works on Firefox and Chrome.
Attachments
Radar WebKit Bug Importer
Comment 1 2019-12-16 11:25:25 PST
Note You need to log in before you can comment on or make changes to this bug.