Commit dea99f9c authored by darin@apple.com's avatar darin@apple.com

2009-05-05 Darin Adler <darin@apple.com>

        Reviewed by Steve Falkenburg.

        <rdar://problem/6858340> REGRESSION: can't drag local HTML files into Safari because CFURLCreateWithFileSystemPath inserts "localhost"

        * platform/win/ClipboardUtilitiesWin.cpp: (WebCore::urlFromPath): Remove localhost.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43249 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c733b946
2009-05-05 Darin Adler <darin@apple.com>
Reviewed by Steve Falkenburg.
<rdar://problem/6858340> REGRESSION: can't drag local HTML files into Safari because CFURLCreateWithFileSystemPath inserts "localhost"
* platform/win/ClipboardUtilitiesWin.cpp: (WebCore::urlFromPath): Remove localhost.
2009-05-05 Peter Kasting <pkasting@google.com>
Reviewed by Brady Eidson.
......@@ -291,7 +291,12 @@ static bool urlFromPath(CFStringRef path, String& url)
if (!cfURL)
return false;
url = String(CFURLGetString(cfURL.get()));
url = CFURLGetString(cfURL.get());
// Work around <rdar://problem/6708300>, where CFURLCreateWithFileSystemPath makes URLs with "localhost".
if (url.startsWith("file://localhost/"))
url.remove(7, 9);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment