Bug 916887 - waitForEvent should return the promise that is resolved after its cleanup is complete. r=mbrubeck

--HG--
extra : rebase_source : fb9bf106058495563e3fa37802b7bb320db773bf