MiniBrowser should show Web Content process pids in the window title
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jun 2014 06:19:08 +0000 (06:19 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jun 2014 06:19:08 +0000 (06:19 +0000)
https://bugs.webkit.org/show_bug.cgi?id=134016

Reviewed by Sam Weinig.

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

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

Tools/ChangeLog
Tools/MiniBrowser/mac/WK2BrowserWindowController.m

index 1361fc99d6f5c39c9e6c87679ab9c69d5a6fc72d..2d03c811f75258e2e6444e0d277b11913e001e87 100644 (file)
@@ -1,3 +1,13 @@
+2014-06-17  Tim Horton  <timothy_horton@apple.com>
+
+        MiniBrowser should show Web Content process pids in the window title
+        https://bugs.webkit.org/show_bug.cgi?id=134016
+
+        Reviewed by Sam Weinig.
+
+        * MiniBrowser/mac/WK2BrowserWindowController.m:
+        (-[WK2BrowserWindowController observeValueForKeyPath:ofObject:change:context:]):
+
 2014-06-17  Carlos Alberto Lopez Perez  <clopez@igalia.com>
 
         [GTK] Fix the handling of resize events after r169505.
index 4f754b71b60731a64d319f2f384c379f817e91f7..97a39ccc84a0f1713b58969d28129b350975cadf 100644 (file)
@@ -325,7 +325,7 @@ static NSString * const WebKit2SubpixelCSSOMElementMetricsEnabledKey = @"WebKitS
         return;
 
     if ([keyPath isEqualToString:@"title"])
-        self.window.title = [_webView.title stringByAppendingString:@" [WK2]"];
+        self.window.title = [_webView.title stringByAppendingFormat:@" [WK2, %d]", _webView._webProcessIdentifier];
     else if ([keyPath isEqualToString:@"URL"])
         [self updateTextFieldFromURL:_webView.URL];
 }