[Webkit-unassigned] [Bug 45849] WKURLCreateWithCFURL crashes with bad url
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 15 16:42:53 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=45849
--- Comment #1 from Simon Fraser (smfr) <simon.fraser at apple.com> 2010-09-15 16:42:53 PST ---
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);
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list