Bug 1091287: Switch to the right browser before displaying a login prompt. r=mrbkap