Bug 29580
| Summary: | [Qt] QWebSettings::OfflineWebApplicationCacheEnabled doesn't w ork | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tor Arne Vestbø <vestbo> |
| Component: | WebKit Qt | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | benjamin, cshu, laszlo.gombos, tonikitoo |
| Priority: | P2 | Keywords: | Qt |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Other | ||
| OS: | Windows XP | ||
Tor Arne Vestbø
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Laszlo Gombos
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
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.