Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gameguy3001

macrumors member
Original poster
Feb 8, 2007
96
0
Saskatoon, SK
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.