| Summary: | SharedArrayBuffers do not get cloned on some messaging APIs | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | roberto.vidal | ||||
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | ahmad.saleem792, cdumez, obi1kenobi82, sam.verschueren, webkit-bug-importer, youennf, ysuzuki | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari 15 | ||||||
| Hardware: | Mac (Intel) | ||||||
| OS: | macOS 11 | ||||||
| Attachments: |
|
||||||
|
Description
roberto.vidal
2022-03-28 03:31:51 PDT
All browsers result: *** Safari 16 on macOS 12.6 *** from worker - SharedArrayBuffer (length 10) from broadcast - ArrayBuffer (length 10) from port - ArrayBuffer (length 10) *** Safari Technology Preview 153 *** from worker - SharedArrayBuffer (length 10) from broadcast - ArrayBuffer (length 10) from port - ArrayBuffer (length 10) *** Chrome Canary 107 *** from worker - SharedArrayBuffer (length 10) from broadcast - null from port - SharedArrayBuffer (length 10) *** Firefox Nightly 106 *** Did not get anything in Console _______ Just wanted to share updated status. Thanks! I've just tested this again in Safari Technology Preview and this seems to be fixed. from worker - SharedArrayBuffer (length 10) from broadcast - SharedArrayBuffer (length 10) from port - SharedArrayBuffer (length 10) However, it's weird that Safari sends the SAB over a broadcast channel while Chrome receives `null`. So maybe that's still a bug. (In reply to Sam Verschueren from comment #3) > I've just tested this again in Safari Technology Preview and this seems to > be fixed. > > from worker - SharedArrayBuffer (length 10) > from broadcast - SharedArrayBuffer (length 10) > from port - SharedArrayBuffer (length 10) > > However, it's weird that Safari sends the SAB over a broadcast channel while > Chrome receives `null`. So maybe that's still a bug. Isn't it a Chrome bug? CC @Chris. Yes this might be on Chrome actually. In Firefox it’s also a SharedArrayBuffer. Not sure what the spec says about it, but my assumption is that it should be a SAB instead of null. |