Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
Firefox 3+ (all platforms)
Description
When iframes are re-created in Firefox, window.frames[id] fetches the dead iframe instead of the new one.
See https://bugzilla.mozilla.org/show_bug.cgi?id=498904
One of the effects of this bug is that RPCs sent from a container to gadget iframes do not reach their destination because the RPC library fetches the frame reference from window.frames[id]. This is the code fragment from Shindig:
getTargetWin(id)
............
// Try window.frames first
var target = window.frames[id];
if (target)
// Fall back to getElementById()
target = document.getElementById(id);
if (target && target.contentWindow)
............
document.getElementById(id) is not affected by this Firefox bug. Would you consider always fetching the target using getElementById to avoid this Firefox issue?