Bug 1081006 - Improve windows.waitForWindowState to also accept ID of the window to catch. r=aeftimie, r=amatei

--HG--
branch : mozilla-beta
extra : transplant_source : p%988%DEo8%3BI%ED%97%25%E5L%81%F6u%05%B2%89%3D