Fix attaching runnerWindow in firefox.

Close #679.