#4693 closed bug (worksforme)
Memory leak with framesets in modal dialog
Reported by: | Dave Berthiaume | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | event | Version: | 1.3.2 |
Keywords: | ie memory leak | Cc: | |
Blocked by: | Blocking: |
Description
In IE6/7, jQuery 1.3.2 introduces a browser memory leak when opening a modal dialog window that contains a frameset. The leak is made worse if there are nested framesets in the popup window, and pages within the frameset include jQuery. See attached files to reproduce the problem.
Attachments (1)
Change History (15)
Changed 13 years ago by
comment:1 Changed 13 years ago by
Milestone: | 1.3.2 → 1.3.3 |
---|---|
Priority: | critical → major |
comment:3 Changed 13 years ago by
I'm heartened to see some activity on this. We had to remove jQuery from our modal dialogs because of this, which obviously seriously restricts us from a development standpoint.
comment:4 Changed 13 years ago by
Component: | unfilled → core |
---|
comment:5 Changed 12 years ago by
I'm now disheartened so see 1.4 roll out and still no activity on this.
comment:6 Changed 12 years ago by
Try this fix to 1.4.2
add to line 67: FSP change DOMContentUnLoaded,
add to line 756: FSP change DOMContentUnLoaded = function() { Original
for ( var id in jQuery.cache ) {
if ( jQuery.cache[ id ].handle ) { Try/Catch is to handle iframes being unloaded, see #4280
try {
jQuery.event.remove( jQuery.cache[ id ].handle.elem );
} catch(e) {}
}
}
FSP extension window.detachEvent( "onload", jQuery.ready ); window.detachEvent( "onunload", DOMContentUnLoaded ); window.jQuery = window.$ = jQuery = null;
}; FSP change end
change line 2627: if ( window.attachEvent && !window.addEventListener ) {
FSP change
window.attachEvent("onunload", DOMContentUnLoaded );
}
comment:7 Changed 12 years ago by
Milestone: | 1.4 → 1.5 |
---|---|
Priority: | major → low |
Status: | new → open |
Seems to still exist in 1.4.x - marking as valid.
comment:8 Changed 11 years ago by
Component: | core → event |
---|---|
Resolution: | → worksforme |
Status: | open → closed |
I believe that this has been resolved. Please re-open if that is no longer the case.
comment:9 Changed 11 years ago by
I'm checked the attached test case on ie7 and 6 with jQuery 1.6.1 and the leak is still occurs.
Unzip and launch index.htm in IE6. Use Task Manager to monitor as you open/close the popup window.