RESOLVED FIXED 29580
[Qt] QWebSettings::OfflineWebApplicationCacheEnabled doesn't w ork
https://bugs.webkit.org/show_bug.cgi?id=29580
Summary [Qt] QWebSettings::OfflineWebApplicationCacheEnabled doesn't w ork
Tor Arne Vestbø
Reported 2009-09-21 08:45:27 PDT
This bug report originated from Nokia internal issue QT-1841 --- Comments --- Product Qt Function webkit Version 4.5.1 Platform Windows XP Platform details Compilers MSVC Compiler details Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) Subject QWebSettings::OfflineWebApplicationCacheEnabled doesn't work Steps to reproduce / test case Create a simple QWebView. Call QWebSettings::globalSettings()->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, true); which should be the default anyway. Call QWebSettings::setOfflineStorageDefaultQuota(10 * 1024 * 1024); I also tried different settings for OfflineStoragePath. Try a page using offline application cache, like http://webkit.org/demos/calendar/Calendar.html. There should be a file called ApplicationCache.db somewhere containing the cached files. But there is no such file. Refreshing the page mentioned above needs online access to work. This should not be the case. More information I found qt_websettings_setOfflineWebApplicationCachePath() to be a free function in qwebsettings.cpp, so I tried to call it and test what might happen. Setting the path using the mentioned function enables the web application cache, an ApplicationCache.db is created in the provides path. But it seems like the feature is somewhat broken. Restarting the test application with an already created ApplicationCache.db frequently crashes the application. Also, it seem as if the caching doesn't work altogether.
Attachments
Laszlo Gombos
Comment 1 2009-12-31 09:33:48 PST
enablePersistentStorage(); is a new API in QtWebkit 4.6 - which shoudl enable all persistent HTML5 features. I belie once AppCache is enabled it works in QtWebKit 4.6 release. I did noticed some rendering problems with http://webkit.org/demos/calendar/Calendar.html, but AppCache seems to be created correctly.
Benjamin Poulain
Comment 2 2010-03-17 07:12:34 PDT
Closing this bug as fixed. Laszlo reported it works for him, and as he says, this is a new feature of Qt 4.6. Please comment if you can reproduce the problem with trunk so we reopen the task.
Note You need to log in before you can comment on or make changes to this bug.