WKWebViewConfiguration should encode more of its properties
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Feb 2016 23:05:20 +0000 (23:05 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Feb 2016 23:05:20 +0000 (23:05 +0000)
https://bugs.webkit.org/show_bug.cgi?id=154611

Reviewed by Sam Weinig.

* UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
(-[WKWebViewConfiguration encodeWithCoder:]):
(-[WKWebViewConfiguration initWithCoder:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@197002 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfiguration.mm

index 72f8102..ff00a70 100644 (file)
@@ -1,5 +1,16 @@
 2016-02-23  Anders Carlsson  <andersca@apple.com>
 
+        WKWebViewConfiguration should encode more of its properties
+        https://bugs.webkit.org/show_bug.cgi?id=154611
+
+        Reviewed by Sam Weinig.
+
+        * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
+        (-[WKWebViewConfiguration encodeWithCoder:]):
+        (-[WKWebViewConfiguration initWithCoder:]):
+
+2016-02-23  Anders Carlsson  <andersca@apple.com>
+
         WKUserContentController should conform to NSCoding
         https://bugs.webkit.org/show_bug.cgi?id=154609
 
index a0e0b86..f033622 100644 (file)
@@ -160,7 +160,10 @@ private:
 
 - (void)encodeWithCoder:(NSCoder *)coder
 {
+    [coder encodeObject:self.processPool forKey:@"processPool"];
     [coder encodeObject:self.preferences forKey:@"preferences"];
+    [coder encodeObject:self.userContentController forKey:@"userContentController"];
+    [coder encodeObject:self.websiteDataStore forKey:@"websiteDataStore"];
 
     [coder encodeBool:self.suppressesIncrementalRendering forKey:@"suppressesIncrementalRendering"];
     [coder encodeObject:self.applicationNameForUserAgent forKey:@"applicationNameForUserAgent"];
@@ -180,7 +183,11 @@ private:
     if (!(self = [self init]))
         return nil;
 
+    self.processPool = [coder decodeObjectForKey:@"processPool"];
     self.preferences = [coder decodeObjectForKey:@"preferences"];
+    self.userContentController = [coder decodeObjectForKey:@"userContentController"];
+    self.websiteDataStore = [coder decodeObjectForKey:@"websiteDataStore"];
+
     self.suppressesIncrementalRendering = [coder decodeBoolForKey:@"suppressesIncrementalRendering"];
     self.applicationNameForUserAgent = [coder decodeObjectForKey:@"applicationNameForUserAgent"];
     self.allowsAirPlayForMediaPlayback = [coder decodeBoolForKey:@"allowsAirPlayForMediaPlayback"];