Remove DOM window URI check

Per discussion in #2937
Merge pull request #3023 from simonster/remove-URI-check

Remove DOM window URI check
Make text layer work when rotating page