Backed out changeset f965ef325903 (bug 999574) for landing with the wrong reviewer in the commit message.
Bug 999574 - Wait for remote-browser-shown event before dispatching runapp command r=vingtetun

---
 b2g/chrome/content/runapp.js | 92 +++++++++++++++++++++++++++++++-------------
 1 file changed, 65 insertions(+), 27 deletions(-)

DONTBUILD