Title: [204905] trunk/Source/WebKit2
- Revision
- 204905
- Author
- m...@apple.com
- Date
- 2016-08-24 10:54:13 -0700 (Wed, 24 Aug 2016)
Log Message
[Cocoa] Can’t "po" WKObject instances
https://bugs.webkit.org/show_bug.cgi?id=161151
Reviewed by Anders Carlsson.
* Shared/Cocoa/WKObject.mm:
(-[WKObject debugDescription]): Implement and forward to the target or print a generic
description.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (204904 => 204905)
--- trunk/Source/WebKit2/ChangeLog 2016-08-24 17:35:20 UTC (rev 204904)
+++ trunk/Source/WebKit2/ChangeLog 2016-08-24 17:54:13 UTC (rev 204905)
@@ -1,3 +1,14 @@
+2016-08-24 Dan Bernstein <m...@apple.com>
+
+ [Cocoa] Can’t "po" WKObject instances
+ https://bugs.webkit.org/show_bug.cgi?id=161151
+
+ Reviewed by Anders Carlsson.
+
+ * Shared/Cocoa/WKObject.mm:
+ (-[WKObject debugDescription]): Implement and forward to the target or print a generic
+ description.
+
2016-08-24 Brady Eidson <beid...@apple.com>
Get timestamps and ids working in WK2 gamepads (and test them!)
Modified: trunk/Source/WebKit2/Shared/Cocoa/WKObject.mm (204904 => 204905)
--- trunk/Source/WebKit2/Shared/Cocoa/WKObject.mm 2016-08-24 17:35:20 UTC (rev 204904)
+++ trunk/Source/WebKit2/Shared/Cocoa/WKObject.mm 2016-08-24 17:54:13 UTC (rev 204905)
@@ -178,6 +178,13 @@
return _target ? [_target description] : [NSString stringWithFormat:@"<%s %p>", class_getName(object_getClass(self)), self];
}
+- (NSString *)debugDescription
+{
+ initializeTargetIfNeeded(self);
+
+ return _target ? [_target debugDescription] : [self description];
+}
+
- (instancetype)retain
{
return _objc_rootRetain(self);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes