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..e89e5e708fdaf1cb5d62a3048bd746c03f4fd95a 100644 |
| --- a/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp |
| +++ b/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp |
| @@ -71,7 +71,7 @@ MHTMLArchive* MHTMLArchive::create(const KURL& url, PassRefPtr<SharedBuffer> dat |
| { |
| // MHTML pages can only be loaded from local URLs and http/https URLs. |
| // The latter is now allowed due to full sandboxing enforcement on MHTML pages. |
|
jianli
2016/08/15 23:12:02
Please also update comment.
Vivian
2016/08/16 21:00:44
Done.
|
| - if (!SchemeRegistry::shouldTreatURLSchemeAsLocal(url.protocol()) && !url.protocolIsInHTTPFamily()) |
| + if (!SchemeRegistry::shouldTreatURLSchemeAsLocal(url.protocol()) && !url.protocolIsInHTTPFamily() && !url.protocolIsContent()) |
|
jianli
2016/08/15 23:12:02
The check for content protocol should only be for
Vivian
2016/08/16 21:00:44
Done.
|
| return nullptr; |
| MHTMLParser parser(data); |