I've setup a modalframe used in my homepage (www.mainsite.com calling www.mainsite.com/modal) and also is called from a different domain (www.alternatesite.com calling an iframe with www.mainsite.com/modal).

In this particular case, js/child.js is loaded and cannot reach parent.Drupal (child.js:20). In Chrome, variables are empty, but in Opera or Firefox, it will raise a "Security Exception". This exception is not catched and will stop all other javascript processing.

To prevent this, I suggest to try/catch this Security Error and return immediatly.

Please, check patch attached and apply it on git.

CommentFileSizeAuthor
child.js_.patch501 bytesjonathanhuot

Comments

dsnopek’s picture

Issue summary: View changes
Status: Needs review » Fixed

Thanks! Committed in 91190b3.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.