| 00:20 | <annevk> | mfreed: any chance you could look at the remaining popover issues/PRs this week? |
| 09:22 | <hsivonen> | miketayl_r: Does Privacy Budget currently sometimes deny getHighEntropyValues or cause it to alter its response or does getHighEntropyValues always succeed and return actual high-entropy values? |
| 09:24 | <hsivonen> | miketayl_r: Does Privacy Budget currently sometimes deny |
| 15:11 | <annevk> | So many leftover popover issues. And review already took quite a while. Sigh. |
| 18:44 | <Dominic Farolino> | postMessaging a SharedArrayBuffer cross-agent-cluster should result in a DataClone error, right? Per https://html.spec.whatwg.org/multipage/structured-data.html#structureddeserialize:~:text=is%20%22SharedArrayBuffer%22%2C%20then%3A-,If%20targetRealm%27s%20corresponding%20agent%20cluster%20is%20not%20serialized.%5B%5BAgentCluster%5D%5D%2C%20then%20then%20throw,-a%20%22DataCloneError (step 12 > 1). |
| 18:48 | <Andreu Botella> | The spec says to throw a DataClone error thrown when deserializing a SharedArrayBuffer from a different agent cluster (so not in postMessage; instead, you'd get an error event at the other end rather than a message event), but I don't think that is even possible |
| 18:49 | <Dominic Farolino> | yeah I can't reproduce an error event on the receiving end in either Chrome or Firefox, unless I'm doing it wrong |
| 18:50 | <Andreu Botella> | I had the mental model that it was impossible to postMessage anything to a different agent cluster, but I'm not actually sure if that's right |
| 18:51 | <Dominic Farolino> | postMessage is mostly for things in a different agent cluster |
| 18:51 | <Dominic Farolino> | i.e., cross-origin iframes |
| 18:51 | <Dominic Farolino> | its just that SharedArrayBuffers are restricted to moving between agents inside an Agent cluster, since we don't have cross-origin shared memory |
| 18:52 | <Andreu Botella> | my mental model was mostly based on Worker.prototype.postMessage, I think |
| 18:52 | <Andreu Botella> | since I was working on that in the context of Deno |
| 18:52 | <Dominic Farolino> | I see |
| 18:56 | <annevk> | Dominic Farolino: since you don't know upfront whether it'll go cross-agent-cluster the error happens when deserializing |
| 18:58 | <Dominic Farolino> | Right, I knew that part (I didn't clarify that in my question). I just can't observe the error being thrown on the receiver side |
| 18:59 | <annevk> | Dominic Farolino: there's no messageerror event? |
| 19:00 | <Dominic Farolino> | Sheesh. I thought I could catch it with window.onerror, sorry :/ |
| 19:01 | <Dominic Farolino> | Heh, yep that works |
| 19:01 | <annevk> | Ah great, this was all a bit of a crapshoot at some point so it's nice that at least parts of it work as intended now. |
| 19:04 | <Dominic Farolino> | Yeah I definitely missed the part of https://html.spec.whatwg.org/#posted-message-task-source that says "If this throws an exception, catch it, fire an event named messageerror at targetWindow [...]". Cool, thanks |