Ticket #1144 (new defect)
Dojo leaks in frames in IE
| Reported by: | sol@… | Owned by: | alex |
|---|---|---|---|
| Priority: | highest | Milestone: | 1.2 |
| Component: | Core | Version: | 0.3 |
| Severity: | critical | Keywords: | IE frame memory+leak |
| Cc: | sol@… |
Description
Hey. It seem Dojo leaks in frames. When a page with Dojo is shown in a frame it seems dojo doesn't unload at all(?) or leaks for whatever other reason.
Simple case of just loading dojo.js with an empty page (with no other script) in a frame shows the memory leak. The leak is small (but still present) for referencing dojo in repository (not baked, when dojo.js is small), but is really a problem for built dojo (baked, dojo.js.uncompressed.js).
For release I get about 0.8MB leak for each frame on refresh. I suspect any widgets present on the page add to the leak. Perhaps unload procedure isn't run properly in the frame?
To reproduce - unpack attachment to the root of the dojo source repository (together with dojo.js file). Load test_frames.html. The problem isn't as noticeable with fresh (not built dojo) as it is with baked dojo.
I used Drip (http://outofhanwell.com/ieleak/index.php?title=Main_Page) to monitor memory usage.