Add work around for Firefox bug related to window methods
Merge pull request #326 from arv/firefox-window-workaround

Add work around for Firefox bug related to window methods