Chromium Code Reviews| Index: third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp |
| diff --git a/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp b/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp |
| index 26fe8ab4d8e1b3b88d67c43482a0c6c3288da1db..0d3bd10c739a7fdc363b0bb9675cd0c9bfbe8651 100644 |
| --- a/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp |
| +++ b/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp |
| @@ -69,9 +69,13 @@ MHTMLArchive::MHTMLArchive() |
| MHTMLArchive* MHTMLArchive::create(const KURL& url, PassRefPtr<SharedBuffer> data) |
| { |
| - // MHTML pages can only be loaded from local URLs and http/https URLs. |
| + // MHTML pages can only be loaded from local URLs, http/https URLs, and content URLs(Android specific). |
| // The latter is now allowed due to full sandboxing enforcement on MHTML pages. |
| - if (!SchemeRegistry::shouldTreatURLSchemeAsLocal(url.protocol()) && !url.protocolIsInHTTPFamily()) |
| + if (!SchemeRegistry::shouldTreatURLSchemeAsLocal(url.protocol()) && !url.protocolIsInHTTPFamily() |
| +#if (DE_OS == DE_OS_ANDROID) |
|
jianli
2016/08/17 01:12:49
I don't think this is a correct check. You should
Vivian
2016/08/17 17:27:18
Done.
|
| + && !url.protocolIs("content") |
| +#endif |
| + ) |
| return nullptr; |
| MHTMLParser parser(data); |