mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
85515c0096
We were delaying sending an IPC message until the HTML PortMessage task was run, but we were not queuing the task in on the receiver side. The result of this was that message port posting was needlessly creating an HTML task just to send an IPC message. On the flip side, we were directly calling dispatch_event from the socket notifier of the target port's message queue. This is a huge problem, because it means that we were effectively running javascript-aware code from an 'in parallel' context. By switching around which side of the IPC interface is responsible for queuing a task, we can avoid problems where a document is destroyed from a port message-attached callback and crashes. |
||
---|---|---|
.. | ||
Libraries | ||
Services | ||
Utilities |