I m working on a safari extension and I was wondering if there is a way to do synchronous message passing in a safari extension.
I want to send a message from my injected javascript to the global page have the injected javascript wait until a result is returned. Having to split my code into another function that receives a message from the global page just seems overly complicated.