Created attachment 33873 [details] Add API to Qt for exposing the webcache We need to expose the offline web app cache in the Qt API, so that users can at least set some sane defaults for their applications.
Comment on attachment 33873 [details] Add API to Qt for exposing the webcache looks good, but we have to do an api review of all of this offline/cache stuff before the release. a few nitpicks: > @@ -358,7 +358,6 @@ QWebSettings::QWebSettings() > d->attributes.insert(QWebSettings::LocalStorageDatabaseEnabled, true); > d->attributes.insert(QWebSettings::LocalContentCanAccessRemoteUrls, true); > d->offlineStorageDefaultQuota = 5 * 1024 * 1024; > - > } Whitespace change, please remove. > @@ -785,10 +784,17 @@ qint64 QWebSettings::offlineStorageDefaultQuota() > } > > /* > - \internal > + \since 4.6 > \relates QWebSettings > > Sets the path for HTML5 offline web application cache storage to \a path. Please add linebreak here. > + An application cache acts like an HTTP cache in some sense. For documents > + that use the application cache via JavaScript, the loader mechinery will > + first ask the application cache for the contents, before hitting the > + network.
Comment on attachment 33873 [details] Add API to Qt for exposing the webcache Landed in 46628