Title: [166624] trunk/Tools
Revision
166624
Author
ander...@apple.com
Date
2014-04-01 16:45:12 -0700 (Tue, 01 Apr 2014)

Log Message

Fix build.

* MiniBrowser/mac/WK2BrowserWindowController.m:
(-[WK2BrowserWindowController awakeFromNib]):
(-[WK2BrowserWindowController dealloc]):
(-[WK2BrowserWindowController observeValueForKeyPath:ofObject:change:context:]):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (166623 => 166624)


--- trunk/Tools/ChangeLog	2014-04-01 23:37:58 UTC (rev 166623)
+++ trunk/Tools/ChangeLog	2014-04-01 23:45:12 UTC (rev 166624)
@@ -1,3 +1,12 @@
+2014-04-01  Anders Carlsson  <ander...@apple.com>
+
+        Fix build.
+
+        * MiniBrowser/mac/WK2BrowserWindowController.m:
+        (-[WK2BrowserWindowController awakeFromNib]):
+        (-[WK2BrowserWindowController dealloc]):
+        (-[WK2BrowserWindowController observeValueForKeyPath:ofObject:change:context:]):
+
 2014-04-01  Brent Fulgham  <bfulg...@apple.com>
 
         Unreviewed test gardening.

Modified: trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m (166623 => 166624)


--- trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m	2014-04-01 23:37:58 UTC (rev 166623)
+++ trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m	2014-04-01 23:45:12 UTC (rev 166624)
@@ -59,7 +59,7 @@
     [progressIndicator bind:NSValueBinding toObject:_webView withKeyPath:@"estimatedProgress" options:nil];
 
     [_webView addObserver:self forKeyPath:@"title" options:0 context:keyValueObservingContext];
-    [_webView addObserver:self forKeyPath:@"activeURL" options:0 context:keyValueObservingContext];
+    [_webView addObserver:self forKeyPath:@"URL" options:0 context:keyValueObservingContext];
 
     _webView.navigationDelegate = self;
     _webView.UIDelegate = self;
@@ -70,7 +70,7 @@
 - (void)dealloc
 {
     [_webView removeObserver:self forKeyPath:@"title"];
-    [_webView removeObserver:self forKeyPath:@"activeURL"];
+    [_webView removeObserver:self forKeyPath:@"URL"];
     
     [progressIndicator unbind:NSHiddenBinding];
     [progressIndicator unbind:NSValueBinding];
@@ -313,8 +313,8 @@
 
     if ([keyPath isEqualToString:@"title"])
         self.window.title = [_webView.title stringByAppendingString:@" [WK2]"];
-    else if ([keyPath isEqualToString:@"activeURL"])
-        [self updateTextFieldFromURL:_webView.activeURL];
+    else if ([keyPath isEqualToString:@"URL"])
+        [self updateTextFieldFromURL:_webView.URL];
 }
 
 - (void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)())completionHandler
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to