|
Introduce String::fromUTF8Lenient() and use it for cache_name in CacheStorage API.
LenientUTF8Conversion mode of WTF::String::utf8() converts a unpaired surrogate to the value of [EDA080-EDAFBF] and [EDB080-EDBFBF].
But current WTF::String::fromUTF8() doesn't support those values.
This cl introduce fromUTF8Lenient() which supports the unpaired surrogates.
And use WebString::fromUTF8Lenient() in CacheStorage API to fix https://crbug.com/432746
BUG= 432746
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+127 lines, -43 lines) |
Patch |
 |
M |
content/browser/cache_storage/cache_storage_dispatcher_host.h
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/cache_storage/cache_storage_dispatcher_host.cc
|
View
|
1
|
8 chunks |
+8 lines, -15 lines |
0 comments
|
Download
|
 |
M |
content/common/cache_storage/cache_storage_messages.h
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/common/cache_storage/cache_storage_types.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/cache_storage/cache_storage_dispatcher.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/cache_storage/cache_storage_dispatcher.cc
|
View
|
|
5 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/http/tests/cachestorage/serviceworker/cache-storage-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/http/tests/cachestorage/window/cache-storage-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/http/tests/cachestorage/worker/cache-storage-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/exported/WebString.cpp
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/wtf/text/UTF8.cpp
|
View
|
|
4 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/wtf/text/WTFString.h
|
View
|
1
|
2 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/wtf/text/WTFString.cpp
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/wtf/text/WTFStringTest.cpp
|
View
|
1
|
2 chunks |
+73 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/platform/WebString.h
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
Total messages: 34 (12 generated)
|