ScriptInterpreter cache for domobjects (dangerous change?)
Maciej Stachowiak
mjs@apple.com
Thu, 9 Jan 2003 15:53:54 -0800
On Thursday, January 9, 2003, at 03:14 PM, Dirk Mueller wrote:
> On Don, 09 Jan 2003, Maciej Stachowiak wrote:
>
>> forgotten it. The result was that JavaScript DOM objects would be kept
>> around until you destroy the ScriptInterpreter. In the case of Safari,
>> this means until you close the window. I'm not sure if it has the same
>> effect in Konqueror.
>
> That is sort of true for older versions. We fixed that some time ago,
> that
> the DOM objects are recycled when you go to a new page. I believe the
> change
> was backported to 3_0_BRANCH
OK, it would be good to compare fixes. One reason I did it the way I
did, instead of clearing on every page change, is because of the page
cache we have in Safari. This can make the document stay live even
after you change pages, so that we can have a really fast back/forward
experience. This is why I had to tie clearing out the JS wrapper
objects to destroying the document instead of to changing pages.
Regards,
Maciej