Shindig
  1. Shindig
  2. SHINDIG-1287

Firefox bug affects RPC communication from gadget containers to gadgets

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Javascript
    • Labels:
      None
    • Environment:
      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)

      { return target; }

      // Fall back to getElementById()
      target = document.getElementById(id);
      if (target && target.contentWindow)

      { return 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?

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Vadim Gerasimov
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development