[kune-commits] [Kune - Support #522] Gadgets stopped working
Redmine Comunes
noreply at ourproject.org
Fri Mar 15 18:19:14 CET 2013
Issue #522 has been updated by Christopher Baldwin.
Whoops - here's a better link:
http://live.brizmun.org:8888/#!sandbox.docs.29.11
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.
<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>
----------------------------------------
Support #522: Gadgets stopped working
http://redmine.ourproject.org/issues/522#change-762
* Author: Christopher Baldwin
* Status: New
* Priority: Low
* Assignee:
* Category: Gadgets
* Target version:
* Resolution:
* Tags:
----------------------------------------
Hi all,
I'm hoping that you can see something blatantly obvious that I've done wrong or missed.
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.
Did a clean install and clean database, nothing changed.
Google chrome's console shows that it's not able to talk to the cross-domain frame of the widget:
<pre>
JS Error - Uncaught TypeError: Object #<HTMLIFrameElement> has no method 'postMessage' [wave-rpc.js:601]
</pre>
Firefox does the same thing:
<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>
I'm not sure what else to check - comparing against what's served by kune.cc, I can't spot the difference.
Any ideas?
---
Example Blip: http://live.brizmun.org:8888/waveref/live.brizmun.org/w+7vxlbcpl0tsbA/~/conv+root/b+iQna4Ue1HAA
Account/Pass: testuser / testuser
Server: Ubuntu 12.04 LTS [AWS]
Address: http://live.brizmun.org/ (jetty on :8888, varnish cache on :80)
---
Chris B
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://redmine.ourproject.org/my/account
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ourproject.org/pipermail/kune-commits/attachments/20130315/ab7b6532/attachment.htm
More information about the kune-commits
mailing list