| Index: pdf/out_of_process_instance.cc
|
| ===================================================================
|
| --- pdf/out_of_process_instance.cc (revision 280032)
|
| +++ pdf/out_of_process_instance.cc (working copy)
|
| @@ -831,6 +831,11 @@
|
| // Skip the code below so an empty URL does not turn into "http://", which
|
| // will cause GURL to fail a DCHECK.
|
| if (!url_copy.empty()) {
|
| + // If |url_copy| starts with '#', then it's for the same URL with a
|
| + // different URL fragment.
|
| + if (url_copy[0] == '#') {
|
| + url_copy = url_ + url_copy;
|
| + }
|
| // If there's no scheme, add http.
|
| if (url_copy.find("://") == std::string::npos &&
|
| url_copy.find("mailto:") == std::string::npos) {
|
| @@ -840,6 +845,7 @@
|
| if (url_copy.find("http://") != 0 &&
|
| url_copy.find("https://") != 0 &&
|
| url_copy.find("ftp://") != 0 &&
|
| + url_copy.find("file://") != 0 &&
|
| url_copy.find("mailto:") != 0) {
|
| return;
|
| }
|
| @@ -847,6 +853,7 @@
|
| if (url_copy == "http://" ||
|
| url_copy == "https://" ||
|
| url_copy == "ftp://" ||
|
| + url_copy == "file://" ||
|
| url_copy == "mailto:") {
|
| return;
|
| }
|
|
|