Title: [170331] trunk/Source/WebKit2
- Revision
- 170331
- Author
- [email protected]
- Date
- 2014-06-23 16:16:09 -0700 (Mon, 23 Jun 2014)
Log Message
<rdar://problem/17413498> [Cocoa] Expose WebPreferences::offlineWebApplicationCacheEnabled
https://bugs.webkit.org/show_bug.cgi?id=134217
Reviewed by Anders Carlsson.
* UIProcess/API/Cocoa/WKPreferences.mm:
(-[WKPreferences _offlineApplicationCacheIsEnabled]):
(-[WKPreferences _setOfflineApplicationCacheIsEnabled:]):
* UIProcess/API/Cocoa/WKPreferencesPrivate.h: Added _offlineWebApplicationCacheIsEnabled
property.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (170330 => 170331)
--- trunk/Source/WebKit2/ChangeLog 2014-06-23 23:15:10 UTC (rev 170330)
+++ trunk/Source/WebKit2/ChangeLog 2014-06-23 23:16:09 UTC (rev 170331)
@@ -1,3 +1,16 @@
+2014-06-23 Dan Bernstein <[email protected]>
+
+ <rdar://problem/17413498> [Cocoa] Expose WebPreferences::offlineWebApplicationCacheEnabled
+ https://bugs.webkit.org/show_bug.cgi?id=134217
+
+ Reviewed by Anders Carlsson.
+
+ * UIProcess/API/Cocoa/WKPreferences.mm:
+ (-[WKPreferences _offlineApplicationCacheIsEnabled]):
+ (-[WKPreferences _setOfflineApplicationCacheIsEnabled:]):
+ * UIProcess/API/Cocoa/WKPreferencesPrivate.h: Added _offlineWebApplicationCacheIsEnabled
+ property.
+
2014-06-23 Grant Kennell <[email protected]>
Add SPI for Injected Bundle to provide user agent for a given URL.
Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm (170330 => 170331)
--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm 2014-06-23 23:15:10 UTC (rev 170330)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm 2014-06-23 23:16:09 UTC (rev 170331)
@@ -153,6 +153,16 @@
_preferences->setStorageBlockingPolicy(toStorageBlockingPolicy(policy));
}
+- (BOOL)_offlineApplicationCacheIsEnabled
+{
+ return _preferences->offlineWebApplicationCacheEnabled();
+}
+
+- (void)_setOfflineApplicationCacheIsEnabled:(BOOL)offlineApplicationCacheIsEnabled
+{
+ _preferences->setOfflineWebApplicationCacheEnabled(offlineApplicationCacheIsEnabled);
+}
+
@end
#endif // WK_API_ENABLED
Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesPrivate.h (170330 => 170331)
--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesPrivate.h 2014-06-23 23:15:10 UTC (rev 170330)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesPrivate.h 2014-06-23 23:16:09 UTC (rev 170331)
@@ -42,6 +42,9 @@
@property (nonatomic, setter=_setTelephoneNumberDetectionIsEnabled:) BOOL _telephoneNumberDetectionIsEnabled;
@property (nonatomic, setter=_setStorageBlockingPolicy:) _WKStorageBlockingPolicy _storageBlockingPolicy;
+// FIXME: This should be configured on the WKWebsiteDataStore.
+@property (nonatomic, setter=_setOfflineApplicationCacheIsEnabled:) BOOL _offlineApplicationCacheIsEnabled;
+
@end
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes