[Webkit-unassigned] [Bug 97808] Chromium: DRT should accept file path as an argument, not just url
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 30 16:02:39 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=97808
--- Comment #3 from Eric Seidel <eric at webkit.org> 2012-10-30 16:03:58 PST ---
Mac uses NSURL to make this easy:
NSURL *url;
if ([pathOrURLString hasPrefix:@"http://"] || [pathOrURLString hasPrefix:@"https://"] || [pathOrURLString hasPrefix:@"file://"])
url = [NSURL URLWithString:pathOrURLString];
else
url = [NSURL fileURLWithPath:pathOrURLString];
if (!url) {
fprintf(stderr, "Failed to parse \"%s\" as a URL\n", pathOrURL.c_str());
return;
}
It appears we have code to do this, it's just broken:
params.testUrl = webkit_support::CreateURLForPathOrURL(command.pathOrURL);
--
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