Add support for Iceweasel/Firefox

It seems Firefox won't take a refresh unless it's the active window,
so we do the window change dance in addition to trying to inject the
refresh directly.