From dffe1eb1b41790256e40c1bc4dd5eba92eb272b1 Mon Sep 17 00:00:00 2001
From: "Jay Freeman (saurik)" <saurik@saurik.com>
Date: Mon, 14 Mar 2011 02:59:54 -0700
Subject: [PATCH] Add helpful -[WebFrame description] for debugging.

---
 CyteKit/WebViewController.mm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index c36614c2..9003af38 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -53,6 +53,14 @@ float CYScrollViewDecelerationRateNormal;
 - (void) setOfflineWebApplicationCacheEnabled:(BOOL)enabled;
 @end
 
+@implementation WebFrame (Cydia)
+
+- (NSString *) description {
+    return [NSString stringWithFormat:@"<%s: %p, %@>", class_getName([self class]), self, [[[([self provisionalDataSource] ?: [self dataSource]) request] URL] absoluteString]];
+}
+
+@end
+
 /* Indirect Delegate {{{ */
 @interface IndirectDelegate : NSObject {
     _transient volatile id delegate_;
-- 
2.47.2