Title: [195952] trunk/Source/WebCore
- Revision
- 195952
- Author
- [email protected]
- Date
- 2016-01-31 21:51:48 -0800 (Sun, 31 Jan 2016)
Log Message
Revert accidental behavior change from previous patch.
* platform/URL.cpp:
(WebCore::mimeTypeFromDataURL): Restore behavior where an empty MIME type would
be turned into "text/plain".
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (195951 => 195952)
--- trunk/Source/WebCore/ChangeLog 2016-02-01 05:46:20 UTC (rev 195951)
+++ trunk/Source/WebCore/ChangeLog 2016-02-01 05:51:48 UTC (rev 195952)
@@ -1,5 +1,13 @@
2016-01-31 Darin Adler <[email protected]>
+ Revert accidental behavior change from previous patch.
+
+ * platform/URL.cpp:
+ (WebCore::mimeTypeFromDataURL): Restore behavior where an empty MIME type would
+ be turned into "text/plain".
+
+2016-01-31 Darin Adler <[email protected]>
+
Cut down on calls to String::lower; mostly replace with convertToASCIILowercase
https://bugs.webkit.org/show_bug.cgi?id=153732
Modified: trunk/Source/WebCore/platform/URL.cpp (195951 => 195952)
--- trunk/Source/WebCore/platform/URL.cpp 2016-02-01 05:46:20 UTC (rev 195951)
+++ trunk/Source/WebCore/platform/URL.cpp 2016-02-01 05:51:48 UTC (rev 195952)
@@ -2132,6 +2132,8 @@
// But we have been returning empty string here for some time, so not changing its behavior at this time.
return emptyString();
}
+ if (index == 5)
+ return ASCIILiteral("text/plain");
ASSERT(index >= 5);
return url.substring(5, index - 5).convertToASCIILowercase();
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes