jugglinmike/srcdoc-polyfill — pull request #3 by msmuenchen (2013-09-21 22:06:10+00:00)
Title: Detect Firefox and fix "window not defined" error

Firefox v.24 shows a "ReferenceError: window is not defined". So, when Firefox is detected, change the URI mechanism to data:-URIs.

Chrome will use the "native" version, and Internet Explorer the previous javascript: URI method.

I did not run minify or tests, though it seems to work in all current versions.