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