[WebKit-devel] [Bug 284383] ~/.kde/share/apps/kwebkitpart/autosave/ growing to insane sizes
Dawit Alemayehu
adawit at kde.org
Wed Oct 19 18:15:10 UTC 2011
https://bugs.kde.org/show_bug.cgi?id=284383
Dawit Alemayehu <adawit at kde.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |adawit at kde.org
--- Comment #1 from Dawit Alemayehu <adawit kde org> 2011-10-19 18:15:10 ---
(In reply to comment #0)
> Version: unspecified (using KDE 4.7.2)
> OS: Linux
>
> Files in the directory ~/.kde/share/apps/kwebkitpart/autosave/ becomes quite
> big, and are not removed, taking all the space available on the hardrive. (more
> than 10Gb)
> David suggested http://www.davidfaure.fr/2011/webkitext.diff (untested)
> I suggest to store the temporary directory for such files
Hmm.. that won't work. The reason why these session files are currently not
removed when Konqueror terminates normally is because the file descriptors
referencing them in kwebkitpart_ext.cpp was not properly closed after use. The
code I wrote incorrectly assumed that the destructor of QBuffer which inherits
QIODevice will call close() from its destructor, but it seems that it does not.
As such, most of the session files are never removed on proper termination of
kwebkitpart. I will fix this shortly.
<side note>
For the record none of this, kwebkitpart saving its own session information,
would have been necessary were it not for the fact that Konqueror invokes
KPart::BrowserExtension::restoreState only for the very last visited url when
it recovers from a crash or restores a previous session. That means, in
kwebkitpart, we can never properly restore the history state for any tab other
than the one where the last visited url was displayed. Anyhow, you can read
http://lists.kde.org/?l=kfm-devel&m=128275102319735&w=2 or commit e2ded37 in
kwebkitpart for further details.
</side note>
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the WebKit-devel
mailing list