Changeset 69636 in webkit
- Timestamp:
- Oct 12, 2010 9:29:24 PM (13 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/Api/qwebsettings.cpp
r68166 r69636 1077 1077 void QWebSettings::enablePersistentStorage(const QString& path) 1078 1078 { 1079 #ifndef QT_NO_DESKTOPSERVICES 1079 1080 QString storagePath; 1080 1081 1081 1082 if (path.isEmpty()) { 1082 #ifndef QT_NO_DESKTOPSERVICES 1083 1083 1084 storagePath = QDesktopServices::storageLocation(QDesktopServices::DataLocation); 1084 #endif1085 1085 if (storagePath.isEmpty()) 1086 1086 storagePath = WebCore::pathByAppendingComponent(QDir::homePath(), QCoreApplication::applicationName()); … … 1099 1099 1100 1100 #if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE) 1101 QFileInfo info(storagePath); 1101 // All applications can share the common QtWebkit cache file(s). 1102 // Path is not configurable and uses QDesktopServices::CacheLocation by default. 1103 QString cachePath = QDesktopServices::storageLocation(QDesktopServices::CacheLocation); 1104 WebCore::makeAllDirectories(cachePath); 1105 1106 QFileInfo info(cachePath); 1102 1107 if (info.isDir() && info.isWritable()) { 1103 1108 WebCore::PluginDatabase::setPersistentMetadataCacheEnabled(true); 1104 WebCore::PluginDatabase::setPersistentMetadataCachePath( storagePath);1109 WebCore::PluginDatabase::setPersistentMetadataCachePath(cachePath); 1105 1110 } 1111 #endif 1106 1112 #endif 1107 1113 } -
trunk/WebKit/qt/ChangeLog
r69582 r69636 1 2010-10-12 David Leong <david.leong@nokia.com> 2 3 Reviewed by Laszlo Gombos. 4 5 [Qt] Enable Netscape plugin metadata caching on Linux 6 https://bugs.webkit.org/show_bug.cgi?id=46287 7 8 QWebSettings::enablePersistentStorage will now store the netscape 9 plugin cache to QDesktopServices::CacheLocation. 10 11 * Api/qwebsettings.cpp: 12 (QWebSettings::enablePersistentStorage): 13 1 14 2010-10-12 Yael Aharon <yael.aharon@nokia.com> 2 15
Note: See TracChangeset
for help on using the changeset viewer.