Bug 1062876 - Refactor window iteration code for MediaManager. r=jib, a=abillings