Bug 205253
| Summary: | Web Worker name is not passed to Worker local scope | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | jujjyl |
| Component: | DOM | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/57978500>