And now I run into the problem PulkoMandy has been telling me I might encounter. Currently, WebKit’s connection creation code goes something like this:
- Give me a connection (in our case, a
BMessenger
) - Thanks! I’ll send that off to the other process.
- Ok, now create the the
BLooper
andBHandler
to receive those messages.
No, we can’t make a BMessenger
to a currently non-existent BLooper
. WebKit has pretty much ordered the steps in the worst possible way for us! We have to create a BMessenger
before knowing what the BLooper
that is supposed to receive it is.
Now I see why Rajagopalan had such a complex solution in the GSoC 2019 project. It seems I’ll have to do one of
- Have a similarly complex solution
- Modify WebKit’s code
- Create a new way of messaging in Haiku