Added a conditional test at line 320 as this code breaks ajax modal windows in Firefox.  See bug report www.tinymce.com/develop/bugtracker_view.php?id=3152 for details on this issue