kmachulis-mozilla/mozilla-central — pull request #2 by mrbkap (2011-11-23 15:44:28+00:00)
Title: Communication lines are up!

Hey Kyle,

This still contains a merge from m-c from a while ago, so the # of commits and changes is stupid. I don't know if that matters to you...

With the stuff here, the worker should be able to communicate with both the main thread and the IPC thread (aka RIL thread) going both ways (the main thread calls postMessage on the worker, which calls onmessage on the worker thread and then that replies with postMessage back to the main thread; the RIL thread does a magical call through C++ to cause a RILMessageEvent to be posted to the worker and the worker can talk to the RIL thread via postRILMessage). I haven't yet hooked up the RIL stuff to the worker, but that should be ~3 lines of code. There's clearly a bunch more cleanup to be done, but we're getting there!