I'm embedding a dashboard in a visualforce page using an iframe:
Uncaught TypeError: Cannot read property 'Listener' of undefined iframeinterface.js:1 Sfdc.xdomain.IframeInterface.handleOnload iframeinterface.js:1 window.onload crossDomainProxy.html:6
The affected file is served from
<SFHOST>/xdomain/iframeinterface.js and the specific line that's causing the error is:
("sfdc-console" === b ? top : "undefined" !== typeof a.targetParentFrame ? parent.frames[a.targetParentFrame].frames[b] : parent.frames[b] ).Sfdc.xdomain.Listener.accept(a)
Any thoughts about what's going wrong and how I can fix it?
I was able to accomplish what I need to with the following hack described in this answer, made possible by the fact that I'm on the same domain. But I'll leave the question open, looking for a more thorough explanation and non-hackish way to embed a dashboard in Visualforce.