Set a visited link store when creating a simple WebView
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Dec 2014 23:01:36 +0000 (23:01 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Dec 2014 23:01:36 +0000 (23:01 +0000)
https://bugs.webkit.org/show_bug.cgi?id=139234
<rdar://problem/19132978>

Reviewed by Sam Weinig.

* WebView/WebView.mm:
(-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):

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

Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebView/WebView.mm

index e5a9668..c8d015f 100644 (file)
@@ -1,3 +1,14 @@
+2014-12-03  Anders Carlsson  <andersca@apple.com>
+
+        Set a visited link store when creating a simple WebView
+        https://bugs.webkit.org/show_bug.cgi?id=139234
+        <rdar://problem/19132978>
+
+        Reviewed by Sam Weinig.
+
+        * WebView/WebView.mm:
+        (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
+
 2014-12-02  Timothy Horton  <timothy_horton@apple.com>
 
         Fix the build.
 2014-12-02  Timothy Horton  <timothy_horton@apple.com>
 
         Fix the build.
index 70c5e58..041bc14 100644 (file)
@@ -1189,6 +1189,7 @@ static void WebKitInitializeGamepadProviderIfNecessary()
     pageConfiguration.loaderClientForMainFrame = new WebFrameLoaderClient;
     pageConfiguration.progressTrackerClient = new WebProgressTrackerClient(self);
     pageConfiguration.userContentController = &_private->group->userContentController();
     pageConfiguration.loaderClientForMainFrame = new WebFrameLoaderClient;
     pageConfiguration.progressTrackerClient = new WebProgressTrackerClient(self);
     pageConfiguration.userContentController = &_private->group->userContentController();
+    pageConfiguration.visitedLinkStore = &_private->group->visitedLinkStore();
 
     _private->page = new Page(pageConfiguration);
     
 
     _private->page = new Page(pageConfiguration);