Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1287

Firefox bug affects RPC communication from gadget containers to gadgets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Javascript
    • 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)

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            gerculanum Vadim Gerasimov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: