<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[160275] trunk/Tools</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/160275">160275</a></dd>
<dt>Author</dt> <dd>weinig@apple.com</dd>
<dt>Date</dt> <dd>2013-12-07 18:36:37 -0800 (Sat, 07 Dec 2013)</dd>
</dl>
<h3>Log Message</h3>
<pre>Convert MiniBrowser to use WKProcessGroup and WKBrowsingContextGroup
https://bugs.webkit.org/show_bug.cgi?id=125400
Reviewed by Dan Bernstein.
* MiniBrowser/mac/AppDelegate.h:
* MiniBrowser/mac/AppDelegate.m:
* MiniBrowser/mac/WK2BrowserWindowController.h:
* MiniBrowser/mac/WK2BrowserWindowController.m:
(-[WK2BrowserWindowController initWithProcessGroup:browsingContextGroup:]):
(-[WK2BrowserWindowController dealloc]):
(createNewPage):
(-[WK2BrowserWindowController awakeFromNib]):
(-[WK2BrowserWindowController browsingContextController:didNavigateWithNavigationData:]):
(-[WK2BrowserWindowController browsingContextController:didPerformClientRedirectFromURL:toURL:]):
(-[WK2BrowserWindowController browsingContextController:didPerformServerRedirectFromURL:toURL:]):
(-[WK2BrowserWindowController browsingContextController:didUpdateHistoryTitle:forURL:]):
Replace global WKContextRef and WKPageGroupRef with WKProcessGroup and WKBrowsingContextGroup. Also
replace context based WKContextHistoryClient with WKBrowsingContextController based WKBrowsingContextHistoryDelegate</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsMiniBrowsermacAppDelegateh">trunk/Tools/MiniBrowser/mac/AppDelegate.h</a></li>
<li><a href="#trunkToolsMiniBrowsermacAppDelegatem">trunk/Tools/MiniBrowser/mac/AppDelegate.m</a></li>
<li><a href="#trunkToolsMiniBrowsermacWK2BrowserWindowControllerh">trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.h</a></li>
<li><a href="#trunkToolsMiniBrowsermacWK2BrowserWindowControllerm">trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (160274 => 160275)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2013-12-07 17:39:33 UTC (rev 160274)
+++ trunk/Tools/ChangeLog        2013-12-08 02:36:37 UTC (rev 160275)
</span><span class="lines">@@ -1,3 +1,25 @@
</span><ins>+2013-12-07 Sam Weinig <sam@webkit.org>
+
+ Convert MiniBrowser to use WKProcessGroup and WKBrowsingContextGroup
+ https://bugs.webkit.org/show_bug.cgi?id=125400
+
+ Reviewed by Dan Bernstein.
+
+ * MiniBrowser/mac/AppDelegate.h:
+ * MiniBrowser/mac/AppDelegate.m:
+ * MiniBrowser/mac/WK2BrowserWindowController.h:
+ * MiniBrowser/mac/WK2BrowserWindowController.m:
+ (-[WK2BrowserWindowController initWithProcessGroup:browsingContextGroup:]):
+ (-[WK2BrowserWindowController dealloc]):
+ (createNewPage):
+ (-[WK2BrowserWindowController awakeFromNib]):
+ (-[WK2BrowserWindowController browsingContextController:didNavigateWithNavigationData:]):
+ (-[WK2BrowserWindowController browsingContextController:didPerformClientRedirectFromURL:toURL:]):
+ (-[WK2BrowserWindowController browsingContextController:didPerformServerRedirectFromURL:toURL:]):
+ (-[WK2BrowserWindowController browsingContextController:didUpdateHistoryTitle:forURL:]):
+ Replace global WKContextRef and WKPageGroupRef with WKProcessGroup and WKBrowsingContextGroup. Also
+ replace context based WKContextHistoryClient with WKBrowsingContextController based WKBrowsingContextHistoryDelegate
+
</ins><span class="cx"> 2013-12-07 Gustavo Noronha Silva <gns@gnome.org>
</span><span class="cx">
</span><span class="cx"> [GTK] Run each gtest subtest separately instead of in one go
</span></span></pre></div>
<a id="trunkToolsMiniBrowsermacAppDelegateh"></a>
<div class="modfile"><h4>Modified: trunk/Tools/MiniBrowser/mac/AppDelegate.h (160274 => 160275)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/MiniBrowser/mac/AppDelegate.h        2013-12-07 17:39:33 UTC (rev 160274)
+++ trunk/Tools/MiniBrowser/mac/AppDelegate.h        2013-12-08 02:36:37 UTC (rev 160275)
</span><span class="lines">@@ -24,8 +24,9 @@
</span><span class="cx"> */
</span><span class="cx">
</span><span class="cx"> @interface BrowserAppDelegate : NSObject <NSApplicationDelegate> {
</span><del>- WKContextRef _processContext;
- WKPageGroupRef _pageGroup;
</del><ins>+ WKProcessGroup *_processGroup;
+ WKBrowsingContextGroup *_browsingContextGroup;
+
</ins><span class="cx"> NSMutableSet *_browserWindows;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkToolsMiniBrowsermacAppDelegatem"></a>
<div class="modfile"><h4>Modified: trunk/Tools/MiniBrowser/mac/AppDelegate.m (160274 => 160275)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/MiniBrowser/mac/AppDelegate.m        2013-12-07 17:39:33 UTC (rev 160274)
+++ trunk/Tools/MiniBrowser/mac/AppDelegate.m        2013-12-08 02:36:37 UTC (rev 160275)
</span><span class="lines">@@ -28,7 +28,7 @@
</span><span class="cx"> #import "WK1BrowserWindowController.h"
</span><span class="cx"> #import "WK2BrowserWindowController.h"
</span><span class="cx">
</span><del>-#import <WebKit2/WKContextPrivate.h>
</del><ins>+#import <WebKit2/WebKit2.h>
</ins><span class="cx"> #import <WebKit2/WKStringCF.h>
</span><span class="cx"> #import <WebKit2/WKURLCF.h>
</span><span class="cx">
</span><span class="lines">@@ -41,77 +41,12 @@
</span><span class="cx">
</span><span class="cx"> @implementation BrowserAppDelegate
</span><span class="cx">
</span><del>-// MARK: History Client Callbacks
-
-static void didNavigateWithNavigationData(WKContextRef context, WKPageRef page, WKNavigationDataRef navigationData, WKFrameRef frame, const void *clientInfo)
-{
- WKStringRef wkTitle = WKNavigationDataCopyTitle(navigationData);
- CFStringRef title = WKStringCopyCFString(0, wkTitle);
- WKRelease(wkTitle);
-
- WKURLRef wkURL = WKNavigationDataCopyURL(navigationData);
- CFURLRef url = WKURLCopyCFURL(0, wkURL);
- WKRelease(wkURL);
-
- LOG(@"HistoryClient - didNavigateWithNavigationData - title: %@ - url: %@", title, url);
- CFRelease(title);
- CFRelease(url);
-}
-
-static void didPerformClientRedirect(WKContextRef context, WKPageRef page, WKURLRef sourceURL, WKURLRef destinationURL, WKFrameRef frame, const void *clientInfo)
-{
- CFURLRef cfSourceURL = WKURLCopyCFURL(0, sourceURL);
- CFURLRef cfDestinationURL = WKURLCopyCFURL(0, destinationURL);
- LOG(@"HistoryClient - didPerformClientRedirect - sourceURL: %@ - destinationURL: %@", cfSourceURL, cfDestinationURL);
- CFRelease(cfSourceURL);
- CFRelease(cfDestinationURL);
-}
-
-static void didPerformServerRedirect(WKContextRef context, WKPageRef page, WKURLRef sourceURL, WKURLRef destinationURL, WKFrameRef frame, const void *clientInfo)
-{
- CFURLRef cfSourceURL = WKURLCopyCFURL(0, sourceURL);
- CFURLRef cfDestinationURL = WKURLCopyCFURL(0, destinationURL);
- LOG(@"HistoryClient - didPerformServerRedirect - sourceURL: %@ - destinationURL: %@", cfSourceURL, cfDestinationURL);
- CFRelease(cfSourceURL);
- CFRelease(cfDestinationURL);
-}
-
-static void didUpdateHistoryTitle(WKContextRef context, WKPageRef page, WKStringRef title, WKURLRef URL, WKFrameRef frame, const void *clientInfo)
-{
- CFStringRef cfTitle = WKStringCopyCFString(0, title);
- CFURLRef cfURL = WKURLCopyCFURL(0, URL);
- LOG(@"HistoryClient - didUpdateHistoryTitle - title: %@ - URL: %@", cfTitle, cfURL);
- CFRelease(cfTitle);
- CFRelease(cfURL);
-}
-
-static void populateVisitedLinks(WKContextRef context, const void *clientInfo)
-{
- LOG(@"HistoryClient - populateVisitedLinks");
-}
-
</del><span class="cx"> - (id)init
</span><span class="cx"> {
</span><span class="cx"> self = [super init];
</span><span class="cx"> if (self) {
</span><del>- WKContextHistoryClientV0 historyClient = {
- { 0, self },
- didNavigateWithNavigationData,
- didPerformClientRedirect,
- didPerformServerRedirect,
- didUpdateHistoryTitle,
- populateVisitedLinks
- };
-
- _processContext = WKContextCreate();
-
- WKContextSetHistoryClient(_processContext, &historyClient.base);
- WKContextSetCacheModel(_processContext, kWKCacheModelPrimaryWebBrowser);
-
- WKStringRef pageGroupIdentifier = WKStringCreateWithCFString(CFSTR("MiniBrowser"));
- _pageGroup = WKPageGroupCreateWithIdentifier(pageGroupIdentifier);
- WKRelease(pageGroupIdentifier);
-
</del><ins>+ _processGroup = [[WKProcessGroup alloc] init];
+ _browsingContextGroup = [[WKBrowsingContextGroup alloc] initWithIdentifier:@"MiniBrowser"];
</ins><span class="cx"> _browserWindows = [[NSMutableSet alloc] init];
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -126,7 +61,7 @@
</span><span class="cx"> controller = [[WK1BrowserWindowController alloc] initWithWindowNibName:@"BrowserWindow"];
</span><span class="cx"> #if WK_API_ENABLED
</span><span class="cx"> else if ([sender tag] == WebKit2NewWindowTag)
</span><del>- controller = [[WK2BrowserWindowController alloc] initWithContext:_processContext pageGroup:_pageGroup];
</del><ins>+ controller = [[WK2BrowserWindowController alloc] initWithProcessGroup:_processGroup browsingContextGroup:_browsingContextGroup];
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> if (!controller)
</span><span class="lines">@@ -157,8 +92,11 @@
</span><span class="cx"> [controller applicationTerminating];
</span><span class="cx"> }
</span><span class="cx">
</span><del>- WKRelease(_processContext);
- _processContext = 0;
</del><ins>+ [_processGroup release];
+ _processGroup = nil;
+
+ [_browsingContextGroup release];
+ _browsingContextGroup = nil;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (BrowserWindowController *)frontmostBrowserWindowController
</span><span class="lines">@@ -200,7 +138,7 @@
</span><span class="cx"> return;
</span><span class="cx">
</span><span class="cx"> // FIXME: add a way to open in WK1 also.
</span><del>- BrowserWindowController *newBrowserWindowController = [[WK2BrowserWindowController alloc] initWithContext:_processContext pageGroup:_pageGroup];
</del><ins>+ BrowserWindowController *newBrowserWindowController = [[WK2BrowserWindowController alloc] initWithProcessGroup:_processGroup browsingContextGroup:_browsingContextGroup];
</ins><span class="cx"> [newBrowserWindowController.window makeKeyAndOrderFront:self];
</span><span class="cx">
</span><span class="cx"> NSURL *url = [openPanel.URLs objectAtIndex:0];
</span></span></pre></div>
<a id="trunkToolsMiniBrowsermacWK2BrowserWindowControllerh"></a>
<div class="modfile"><h4>Modified: trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.h (160274 => 160275)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.h        2013-12-07 17:39:33 UTC (rev 160274)
+++ trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.h        2013-12-08 02:36:37 UTC (rev 160275)
</span><span class="lines">@@ -29,7 +29,7 @@
</span><span class="cx">
</span><span class="cx"> @interface WK2BrowserWindowController : BrowserWindowController <BrowserController>
</span><span class="cx">
</span><del>-- (id)initWithContext:(WKContextRef)context pageGroup:(WKPageGroupRef)pageGroup;
</del><ins>+- (id)initWithProcessGroup:(WKProcessGroup *)processGroup browsingContextGroup:(WKBrowsingContextGroup *)browsingContextGroup;
</ins><span class="cx">
</span><span class="cx"> @end
</span><span class="cx">
</span></span></pre></div>
<a id="trunkToolsMiniBrowsermacWK2BrowserWindowControllerm"></a>
<div class="modfile"><h4>Modified: trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m (160274 => 160275)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m        2013-12-07 17:39:33 UTC (rev 160274)
+++ trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m        2013-12-08 02:36:37 UTC (rev 160275)
</span><span class="lines">@@ -29,27 +29,30 @@
</span><span class="cx">
</span><span class="cx"> #import "AppDelegate.h"
</span><span class="cx"> #import <WebKit2/WKBrowsingContextControllerPrivate.h>
</span><ins>+#import <WebKit2/WKBrowsingContextHistoryDelegate.h>
</ins><span class="cx"> #import <WebKit2/WKBrowsingContextLoadDelegatePrivate.h>
</span><span class="cx"> #import <WebKit2/WKBrowsingContextPolicyDelegate.h>
</span><ins>+#import <WebKit2/WKNavigationData.h>
</ins><span class="cx"> #import <WebKit2/WKPagePrivate.h>
</span><span class="cx"> #import <WebKit2/WKStringCF.h>
</span><span class="cx"> #import <WebKit2/WKURLCF.h>
</span><span class="cx"> #import <WebKit2/WKViewPrivate.h>
</span><span class="cx">
</span><del>-@interface WK2BrowserWindowController () <WKBrowsingContextLoadDelegatePrivate, WKBrowsingContextPolicyDelegate>
</del><ins>+@interface WK2BrowserWindowController () <WKBrowsingContextLoadDelegatePrivate, WKBrowsingContextPolicyDelegate, WKBrowsingContextHistoryDelegate>
</ins><span class="cx"> @end
</span><span class="cx">
</span><span class="cx"> @implementation WK2BrowserWindowController {
</span><del>- WKContextRef _context;
- WKPageGroupRef _pageGroup;
</del><ins>+ WKProcessGroup *_processGroup;
+ WKBrowsingContextGroup *_browsingContextGroup;
+
</ins><span class="cx"> WKView *_webView;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-- (id)initWithContext:(WKContextRef)context pageGroup:(WKPageGroupRef)pageGroup
</del><ins>+- (id)initWithProcessGroup:(WKProcessGroup *)processGroup browsingContextGroup:(WKBrowsingContextGroup *)browsingContextGroup
</ins><span class="cx"> {
</span><span class="cx"> if ((self = [super initWithWindowNibName:@"BrowserWindow"])) {
</span><del>- _context = WKRetain(context);
- _pageGroup = WKRetain(pageGroup);
</del><ins>+ _processGroup = [processGroup retain];
+ _browsingContextGroup = [browsingContextGroup retain];
</ins><span class="cx"> _zoomTextOnly = NO;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -61,13 +64,14 @@
</span><span class="cx"> [progressIndicator unbind:NSHiddenBinding];
</span><span class="cx"> [progressIndicator unbind:NSValueBinding];
</span><span class="cx">
</span><del>- WKRelease(_context);
- WKRelease(_pageGroup);
</del><span class="cx"> [_webView.browsingContextController removeObserver:self forKeyPath:@"title" context:[WK2BrowserWindowController self]];
</span><span class="cx"> _webView.browsingContextController.loadDelegate = nil;
</span><span class="cx"> _webView.browsingContextController.policyDelegate = nil;
</span><span class="cx"> [_webView release];
</span><span class="cx">
</span><ins>+ [_browsingContextGroup release];
+ [_processGroup release];
+
</ins><span class="cx"> [super dealloc];
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -313,7 +317,8 @@
</span><span class="cx"> static WKPageRef createNewPage(WKPageRef page, WKURLRequestRef request, WKDictionaryRef features, WKEventModifiers modifiers, WKEventMouseButton button, const void* clientInfo)
</span><span class="cx"> {
</span><span class="cx"> LOG(@"createNewPage");
</span><del>- WK2BrowserWindowController *controller = [[WK2BrowserWindowController alloc] initWithContext:WKPageGetContext(page) pageGroup:WKPageGetPageGroup(page)];
</del><ins>+ WK2BrowserWindowController *originator = (WK2BrowserWindowController *)clientInfo;
+ WK2BrowserWindowController *controller = [[WK2BrowserWindowController alloc] initWithProcessGroup:originator->_processGroup browsingContextGroup:originator->_browsingContextGroup];
</ins><span class="cx"> [controller loadWindow];
</span><span class="cx">
</span><span class="cx"> return WKRetain(controller->_webView.pageRef);
</span><span class="lines">@@ -497,7 +502,7 @@
</span><span class="cx">
</span><span class="cx"> - (void)awakeFromNib
</span><span class="cx"> {
</span><del>- _webView = [[WKView alloc] initWithFrame:[containerView bounds] contextRef:_context pageGroupRef:_pageGroup];
</del><ins>+ _webView = [[WKView alloc] initWithFrame:[containerView bounds] processGroup:_processGroup browsingContextGroup:_browsingContextGroup];
</ins><span class="cx">
</span><span class="cx"> [_webView setAutoresizingMask:(NSViewWidthSizable | NSViewHeightSizable)];
</span><span class="cx"> [containerView addSubview:_webView];
</span><span class="lines">@@ -508,8 +513,8 @@
</span><span class="cx"> [_webView.browsingContextController addObserver:self forKeyPath:@"title" options:0 context:[WK2BrowserWindowController self]];
</span><span class="cx">
</span><span class="cx"> _webView.browsingContextController.loadDelegate = self;
</span><del>-
</del><span class="cx"> _webView.browsingContextController.policyDelegate = self;
</span><ins>+ _webView.browsingContextController.historyDelegate = self;
</ins><span class="cx">
</span><span class="cx"> WKPageUIClientV2 uiClient = {
</span><span class="cx"> { 2, self },
</span><span class="lines">@@ -679,6 +684,28 @@
</span><span class="cx"> decisionHandler(WKPolicyDecisionAllow);
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+#pragma mark WKBrowsingContextHistoryDelegate
+
+- (void)browsingContextController:(WKBrowsingContextController *)browsingContextController didNavigateWithNavigationData:(WKNavigationData *)navigationData
+{
+ LOG(@"WKBrowsingContextHistoryDelegate - didNavigateWithNavigationData - title: %@ - url: %@", navigationData.title, navigationData.originalRequest.URL);
+}
+
+- (void)browsingContextController:(WKBrowsingContextController *)browsingContextController didPerformClientRedirectFromURL:(NSURL *)sourceURL toURL:(NSURL *)destinationURL
+{
+ LOG(@"WKBrowsingContextHistoryDelegate - didPerformClientRedirect - fromURL: %@ - toURL: %@", sourceURL, destinationURL);
+}
+
+- (void)browsingContextController:(WKBrowsingContextController *)browsingContextController didPerformServerRedirectFromURL:(NSURL *)sourceURL toURL:(NSURL *)destinationURL
+{
+ LOG(@"WKBrowsingContextHistoryDelegate - didPerformServerRedirect - fromURL: %@ - toURL: %@", sourceURL, destinationURL);
+}
+
+- (void)browsingContextController:(WKBrowsingContextController *)browsingContextController didUpdateHistoryTitle:(NSString *)title forURL:(NSURL *)URL
+{
+ LOG(@"browsingContextController - didUpdateHistoryTitle - title: %@ - URL: %@", title, URL);
+}
+
</ins><span class="cx"> @end
</span><span class="cx">
</span><span class="cx"> #endif // WK_API_ENABLED
</span></span></pre>
</div>
</div>
</body>
</html>