| Index: net/base/net_util.cc
|
| diff --git a/net/base/net_util.cc b/net/base/net_util.cc
|
| index b72b634083723640fd7347a1ce846751a055c8c9..df08a08f482c82fb680e1682e51496fbf9e3646f 100644
|
| --- a/net/base/net_util.cc
|
| +++ b/net/base/net_util.cc
|
| @@ -740,6 +740,8 @@ std::wstring FormatViewSourceUrl(const GURL& url,
|
| const wchar_t* const kWideViewSource = L"view-source:";
|
| const size_t kViewSourceLengthPlus1 = 12;
|
|
|
| + // 'view-source' requires http, so don't strip it.
|
| + format_types &= ~net::kFormatUrlOmitHTTP;
|
| GURL real_url(url.possibly_invalid_spec().substr(kViewSourceLengthPlus1));
|
| size_t temp_offset = (*offset_for_adjustment == std::wstring::npos) ?
|
| std::wstring::npos : (*offset_for_adjustment - kViewSourceLengthPlus1);
|
|
|