Issue opening cross domain content in an iframe (in a lightbox)

503 views
Skip to first unread message

findchris

unread,
Dec 6, 2011, 9:30:11 PM12/6/11
to eas...@googlegroups.com
Hi there.

Since you have gotten easyXDM to work with a lightbox, I was wondering if you might be able to offer me some wisdom.  I did what I thought was described above, but it's not working.

I have a snippet of javascript running in the consumer, which returns to the consumer a URL for them to open in an iframe containing some interesting content to show to the user.  When the consumer opens the URL in a lightboxed iframe, the callback to my code to let me know that the iframe is loaded.  At this point, I create an easyXDM RPC object like below:

Inside the content_url iframe, I created another RPC:

However, I'm seeing the following error backtrace in the console:

I'm not sure why it is trying to call resolveUrl from the iframe at this line:

  config.remote = resolveUrl(config.remote);

My iframe content doesn't (and shouldn't, right?) have a remote defined.

I appreciate any help.
-Chris

findchris

unread,
Dec 8, 2011, 8:12:03 PM12/8/11
to eas...@googlegroups.com
For some google love, here is some further discussion of the issue in the comments of a github gist:

I am still seeing the "Unsafe JavaScript attempt to access frameerror, if anyone has any insight what might be causing this (despite the fact that communication is successful).

Øyvind Sean Kinsey

unread,
Dec 8, 2011, 10:48:02 PM12/8/11
to eas...@googlegroups.com
You have any other plugins on the page?
These often come from things like twitter, google, shareit etc which randomly tries to access iframe in the page, or tries to navigate the dom hierarchy trying to figure out different things..

Sean

findchris

unread,
Dec 9, 2011, 8:15:58 PM12/9/11
to eas...@googlegroups.com
Hi Sean.

The page is very isolated, with no 3rd party code except for (potentially) JSON2.  This behavior occurs even in a Google Chrome "Incognito Window" in which all browser plugins are disabled.

Any tips for debugging this?

-Chris
Reply all
Reply to author
Forward
0 new messages