<html>
<head>
<style>
body {
  font-family: Verdana, sans-serif;
  font-size: 0.8em;
  color:#484848;
}
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; }
h1 { font-size: 1.2em; }
h2, h3 { font-size: 1.1em; }
a, a:link, a:visited { color: #2A5685;}
a:hover, a:active { color: #c61a1a; }
a.wiki-anchor { display: none; }
hr {
  width: 100%;
  height: 1px;
  background: #ccc;
  border: 0;
}
.footer {
  font-size: 0.8em;
  font-style: italic;
}
</style>
</head>
<body>
<span class="header"></span>
Issue #522 has been updated by Christopher Baldwin.

<ul>
</ul>

<p>Whoops - here's a better link:<br /><a class="external" href="http://live.brizmun.org:8888/#!sandbox.docs.29.11">http://live.brizmun.org:8888/#!sandbox.docs.29.11</a></p>


        <p>Did some more digging to try understand what it's doing.  For some reason, gadgets.rpc._getTargetWin() is returning an iframe rather than a window object.  Everything else (message, target origin) seems to match.</p>


<pre>
/* h = "wgadget_iframe_0" */

/* returns an iframe object, where .postMessage is useless */
i = gadgets.rpc._getTargetWin(h);
i.postMessage('{"not","a","real"}', 'http://message.net'');   // postMessage is not a valid function

/* returns a window object, where .postMessage is valid */
i = window.frames[h];
i.postMessage('{"not","a","real"}', 'http://message.net'');   // postMessage is a valid function
</pre>
<hr />
<h1><a href="http://redmine.ourproject.org/issues/522#change-762">Support #522: Gadgets stopped working</a></h1>

<ul>
<li>Author: Christopher Baldwin</li>
<li>Status: New</li>
<li>Priority: Low</li>
<li>Assignee: </li>
<li>Category: Gadgets</li>
<li>Target version: </li>
  <li>Resolution: </li>
  <li>Tags: </li>
</ul>

<p>Hi all,</p>


        <p>I'm hoping that you can see something blatantly obvious that I've done wrong or missed.</p>


        <p>Had Gadgets working in kune_0.2.0+b34_all.deb, after compiling and packaging kune_0.3.0+b23_all.deb from trunk, they all fail.</p>


        <p>Did a clean install and clean database, nothing changed.</p>


        <p>Google chrome's console shows that it's not able to talk to the cross-domain frame of the widget:<br /><pre>
  JS Error - Uncaught TypeError: Object #&lt;HTMLIFrameElement&gt; has no method 'postMessage' [wave-rpc.js:601]
</pre></p>


        <p>Firefox does the same thing:<br /><pre>
Error: TypeError: i.postMessage is not a function
Source File: http://live.brizmun.org:8888/others/splash/js/wave-rpc.js
Line: 601
</pre></p>


        <p>I'm not sure what else to check - comparing against what's served by kune.cc, I can't spot the difference.</p>


        <p>Any ideas?</p>


<hr />


        <p>Example Blip:  <a class="external" href="http://live.brizmun.org:8888/waveref/live.brizmun.org/w+7vxlbcpl0tsbA/~/conv+root/b+iQna4Ue1HAA">http://live.brizmun.org:8888/waveref/live.brizmun.org/w+7vxlbcpl0tsbA/~/conv+root/b+iQna4Ue1HAA</a><br />Account/Pass:  testuser / testuser</p>


        <p>Server: Ubuntu 12.04 LTS [AWS]<br />Address:  <a class="external" href="http://live.brizmun.org/">http://live.brizmun.org/</a>  (jetty on :8888, varnish cache on :80)</p>


<hr />


        <p>Chris B</p>


<hr />
<span class="footer"><p>You have received this notification because you have either subscribed to it, or are involved in it.<br />To change your notification preferences, please click here: <a class="external" href="http://redmine.ourproject.org/my/account">http://redmine.ourproject.org/my/account</a></p></span>
</body>
</html>