[webkit-changes] [WebKit/WebKit] 5e1c8e: [Win] The generic URL::fileSystemPath has to remov...
Fujii Hironori
noreply at github.com
Thu Feb 23 03:40:14 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5e1c8e09258cfc87c6907b65a5f7c72b08e295af
https://github.com/WebKit/WebKit/commit/5e1c8e09258cfc87c6907b65a5f7c72b08e295af
Author: Fujii Hironori <Hironori.Fujii at sony.com>
Date: 2023-02-23 (Thu, 23 Feb 2023)
Changed paths:
M Source/WTF/wtf/URL.cpp
M Source/WTF/wtf/cf/URLCF.cpp
Log Message:
-----------
[Win] The generic URL::fileSystemPath has to remove a leading slash
https://bugs.webkit.org/show_bug.cgi?id=252367
Reviewed by Darin Adler and Ross Kirsling.
Switched Windows port to use the generic URL::fileSystemPath rather
than one using CF.
URL::fileSystemPath has to remove a leading slash for Windows.
Otherwise it returns a path "/C:/x.txt" for a URL
"file:///C:/x.txt".
* Source/WTF/wtf/URL.cpp:
(WTF::URL::fileSystemPath const):
* Source/WTF/wtf/cf/URLCF.cpp:
(WTF::URL::fileSystemPath const):
Canonical link: https://commits.webkit.org/260739@main
More information about the webkit-changes
mailing list