IFRAME in Opera & Security error fix #130

Merged
merged 1 commit into from May 12, 2012

4 participants

@desunit

Opera forbids accessing top.document properties such as "title" or event "onhashchanged" from IFRAME and throws error "Uncaught exception: ReferenceError: Security error: attempted to read protected variable: onhashchange." Since _window method only checks for top.document property I suggest to add top.document.title check either - exception will be thrown and code will return reference to window instead of top.

@desunit desunit Workaround for Opera error: "Uncaught exception: ReferenceError: Secu…
…rity

error: attempted to read protected variable: onhashchange" occurred in
iframe
4f695ea
@asyncerror

Works! Thank you!

@fed239

Works perfectly. Thank you so much!

@asual asual merged commit 38b3ac0 into asual:master May 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment