Support #522
Gadgets stopped working
Status: | Rejected | Start date: | 03/15/2013 | |
---|---|---|---|---|
Priority: | Low | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | Gadgets | |||
Target version: | - | |||
Resolution: | worksforme | Tags: |
Description
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:
JS Error - Uncaught TypeError: Object #<HTMLIFrameElement> has no method 'postMessage' [wave-rpc.js:601]
Firefox does the same thing:
Error: TypeError: i.postMessage is not a function Source File: http://live.brizmun.org:8888/others/splash/js/wave-rpc.js Line: 601
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
History
#1 Updated by Christopher Baldwin about 11 years ago
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.
/* 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
#2 Updated by Vicente J. Ruiz Jurado about 11 years ago
- Status changed from New to Rejected
- Resolution set to worksforme
We were/are using gadget without major problems in all of our releases.
Some comments:
1) Why do you compile yourself? Can you try with one of our provided packets?
ftp://ftp.ourproject.org/pub/kune/debian/unstable/
2) The only issue I remeber was something introduced with gadget height with this issue:
https://reviews.apache.org/r/8008/
but it was reverted in our last packages.
3) Can you test your gadgets in kune.cc (that are using the previous packages).
So a "works for me". Please feel free to reopen this.
PS: By the way your links are not working... I hope is something temporally ;-)
#3 Updated by Vicente J. Ruiz Jurado about 11 years ago
Something related is #531.