Title: [105465] trunk/Tools
- Revision
- 105465
- Author
- [email protected]
- Date
- 2012-01-19 17:10:47 -0800 (Thu, 19 Jan 2012)
Log Message
[WK2] DumpRenderTree converts "file:///" to a path differently
https://bugs.webkit.org/show_bug.cgi?id=76653
Reviewed by John Sullivan.
* WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: (WTR::lastFileURLPathComponent):
Do print a slash if there are no path components.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (105464 => 105465)
--- trunk/Tools/ChangeLog 2012-01-20 00:57:46 UTC (rev 105464)
+++ trunk/Tools/ChangeLog 2012-01-20 01:10:47 UTC (rev 105465)
@@ -1,3 +1,13 @@
+2012-01-19 Alexey Proskuryakov <[email protected]>
+
+ [WK2] DumpRenderTree converts "file:///" to a path differently
+ https://bugs.webkit.org/show_bug.cgi?id=76653
+
+ Reviewed by John Sullivan.
+
+ * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: (WTR::lastFileURLPathComponent):
+ Do print a slash if there are no path components.
+
2012-01-19 Eric Seidel <[email protected]>
webkit-patch cannot rollout patches without changelog/bug number
Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp (105464 => 105465)
--- trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp 2012-01-20 00:57:46 UTC (rev 105464)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp 2012-01-20 01:10:47 UTC (rev 105465)
@@ -838,7 +838,7 @@
ASSERT(string::npos != pos);
string tmpPath = path.substr(pos + 7);
- if (tmpPath.empty())
+ if (tmpPath.length() < 2) // Keep the lone slash to avoid empty output.
return tmpPath;
// Remove the trailing delimiter
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes