[
https://issues.apache.org/jira/browse/WAVE-389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13618498#comment-13618498
]
Ali Lown commented on WAVE-389:
-------------------------------
Ok, I have done some more digging for this issue.
The problem lies in the '[object].postMessage()' call as part of the gadget RPC
code.
Under Chrome, the object is the iframe's window (as it should be). Under
Firefox 19, we are instead attempting to call postMessage on the iframe object
(rather than its window), hence the failure.
The reason we call is down to this bit (of de-minified code, I need to trace
the actual bit in the codebase):
{code:javascript}
function ad(ag) {
if (typeof ag === "undefined" || ag === "..") {
return window.parent
}
var af = y(ag);
if (af) {
return window.top.frames[af.id]
}
ag = String(ag);
var ae = window.frames[ag];
if (ae) {
return ae
}
ae = document.getElementById(ag);
if (ae && ae.contentWindow) {
return ae.contentWindow
}
return null
}
{code}
Under Firefox 19, the flowpath is via 'return ae'. So, we are returning the
frame rather than the frame.contentWindow. I don't know which this case even
exists, because it can never return the correct type (which only the last if
switch will ever do). It appears that the behaviour of window.frames changed
slightly in Firefox 19, though I have been unable to determine which of the
bugs listed has been the cause.
We can fix this at our end anyway. I will continue chasing this tomorrow
(possibly).
> Gadgets stopped working with Firefox 19
> ---------------------------------------
>
> Key: WAVE-389
> URL: https://issues.apache.org/jira/browse/WAVE-389
> Project: Wave
> Issue Type: Bug
> Components: Extentions
> Environment: kune.cc, waveinabox.net
> Reporter: Samer
> Priority: Minor
> Labels: bug, extensions, firefox, gadgets
>
> In Firefox 19 (Ubuntu 12.10) gadgets stopped working. It seems some work
> partially/sometimes (yes/no/mini, map) but most of those tried are completely
> broken (yes/no/maybe, yes/no/maybe+...). With FF 18 they were working. With
> websockets disabled in FF 19 gadgets still don't work. From Chrome/Chromium
> they work perfectly. Firebug aborts some requests to
> opensocial.googleusercontent.com (example in a comment).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira