Fix window.focus() in content processes (bug 902715, r=enndeakin).