The forked version support customize target window and document, so we can polyfill it to the iframe.