Closed (works as designed)
Project:
Collapse Text
Version:
7.x-2.3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2012 at 16:15 UTC
Updated:
27 Jul 2012 at 17:47 UTC
Thank you for this excellent module! I ran into an odd use case when trying to embed an iFrame - this is only in Safari - FF works fine.
When displayed in the collapsible block of text, the iFrame display is "garbled" and Safari throws the following error:
"Unsafe JavaScript attempt to access frame with URL [page] from frame with URL [iFrame source page]. Domains, protocols and ports must match."
The same iFrame displays perfectly when not enclosed in the collapsed text block. Ideas? Any assistance much appreciated!
Comments
Comment #1
pukku commentedHi! This module does cause Drupal to include the `collapse.js` file. This is going to do things to the elements of the created fieldset to make them collapse; in particular it is going to try to change the display properties. If the iframe references a different server, I'm guessing that Safari sees this as some sort of possible XSS attack, and errors out. I don't think there is any way to solve this. I suppose you could try having the iframe load a page on your domain which has within it an iframe to the external site, but that's ugly, awkward, fragile, and unlikely to work anyway.
Sorry, but I don't think that this can be solved...
Ricky