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

iframe onload events firing more than once cause gadget iframe to empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.0-update1
    • 2.5.1
    • None
    • None

    Description

      In the case a gadget iframe is re-parented, the iframe's onload handler will fire again. This causes osapi.container.GadgetSite.prototype.onRender to call remove() on currentGadgetHolder_ because it is not null.

      This is easily reproducible in Apache Rave since it upgraded to Shindig 2.5.0-update1. Simply drag-and-drop a gadget on the page and its contents will disappear.

      I think GadgetSite.onRender should either guard against this scenario by checking to see if loadingGadgetHolder_ is set before clearing out currentGadgetHolder_ or we should remove the onload handler entirely from the iframe once it has fired once.

      Attachments

        Issue Links

          Activity

            People

              ssievers Stanton Sievers
              ssievers Stanton Sievers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: