I entered a bogus url into MiniBrowser's url bar, and hit return, and it crashed. URL was <rdar://problem/999> Crashes in WKURLCreateWithCFURL at: String urlString(CFURLGetString(cfURL)); cfURL is null.
Minibrowser bug I guess: diff --git a/WebKitTools/MiniBrowser/mac/BrowserWindowController.m b/WebKitTools/MiniBrowser/mac/BrowserWindowController.m index 43351e5..162d99a 100644 --- a/WebKitTools/MiniBrowser/mac/BrowserWindowController.m +++ b/WebKitTools/MiniBrowser/mac/BrowserWindowController.m @@ -61,6 +61,9 @@ - (void)dealloc - (IBAction)fetch:(id)sender { CFURLRef cfURL = CFURLCreateWithString(0, (CFStringRef)[urlText stringValue], 0); + if (!cfURL) + return; + WKURLRef url = WKURLCreateWithCFURL(cfURL); CFRelease(cfURL);
http://trac.webkit.org/changeset/67580