Bug 1084333. Part 1 - Add getElement and getElements to BaseWindow and change the assert. r=aeftimie, r=amatei, r=hskupin

--HG--
branch : mozilla-beta
extra : transplant_source : A%9D%EDE%F0%89%90%EC%ADp-%23%E2oC%B1jy%60%D0