DWR

Iframe mode causes memory leaks and page resizing

Details

  • Type: Bug Bug
  • Status: Reopened Reopened
  • Priority: Normal Normal
  • Resolution: Unresolved
  • Affects Version/s: 2.0, 2.0.1, 2.0.2, 2.0.3, 3.0.M1
  • Fix Version/s: 3.0
  • Component/s: Engine
  • Description:
    Hide
    Doing calls in IFRAME mode (enabled by "rpcType: dwr.engine.IFrame" in call options) causes a few problems:

    1) Memory leak in IE
    The following leaked memory amount, and leaked HTML elements, are reported by the respective IE browser:
    IE6sp1 and IE6sp2: 40-60KB/call, leaking div/iframe/form
    IE7: 32-34KB/call, leaking div/iframe/form and inputs
    Thus, it seems the dynamically generated elements are not cleaned up properly even though they are removed from DOM. Could be a closure problem or similar.

    2) Page resizing
    The generated elements seem to affect page layout. This can be seen as a flickering scrollbar for a page that is taller than the browser window.

    3) Opera
    There seems to be an error in Opera, reporting "Incomplete reply from server". It would be good if someone else tried IFRAME mode in Opera to verify.
    Show
    Doing calls in IFRAME mode (enabled by "rpcType: dwr.engine.IFrame" in call options) causes a few problems: 1) Memory leak in IE The following leaked memory amount, and leaked HTML elements, are reported by the respective IE browser: IE6sp1 and IE6sp2: 40-60KB/call, leaking div/iframe/form IE7: 32-34KB/call, leaking div/iframe/form and inputs Thus, it seems the dynamically generated elements are not cleaned up properly even though they are removed from DOM. Could be a closure problem or similar. 2) Page resizing The generated elements seem to affect page layout. This can be seen as a flickering scrollbar for a page that is taller than the browser window. 3) Opera There seems to be an error in Opera, reporting "Incomplete reply from server". It would be good if someone else tried IFRAME mode in Opera to verify.

Activity

Hide
Joe Walker added a comment - 31/Mar/08 1:56 PM

I think I've just fixed both of these, it would be good if you could have a quick check on your return.

Show
Joe Walker added a comment - 31/Mar/08 1:56 PM I think I've just fixed both of these, it would be good if you could have a quick check on your return.
Hide
Mike Wilson added a comment - 15/Apr/08 3:13 PM

I still see all three problems. The only change I see is that the leaked IFRAMEs now have other ids.

Show
Mike Wilson added a comment - 15/Apr/08 3:13 PM I still see all three problems. The only change I see is that the leaked IFRAMEs now have other ids.

People

Dates

  • Created:
    27/Mar/08 2:50 PM
    Updated:
    22/May/09 4:16 AM