Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1695)

Unified Diff: content/public/browser/url_data_source.cc

Issue 1217503012: Avoid cross-origin iframe issues when loading PDF in print preview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/url_data_source.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/url_data_source.cc
diff --git a/content/public/browser/url_data_source.cc b/content/public/browser/url_data_source.cc
index 0c76c50afd0f41af02359306f6b042c96ceb2831..ce060966eca4f7b470907332ffcffcc442ef930b 100644
--- a/content/public/browser/url_data_source.cc
+++ b/content/public/browser/url_data_source.cc
@@ -61,4 +61,12 @@ std::string URLDataSource::GetAccessControlAllowOriginForOrigin(
return std::string();
}
+void URLDataSource::WillServiceRequest(
+ const net::URLRequest* request,
+ std::string* path) const {
+ // In the normal case we want to remove any query strings from the path. This
+ // may not be true for subclasses which can override this behavior.
+ *path = path->substr(0, path->find_last_of('?'));
Charlie Reis 2015/07/20 16:49:09 I don't think this is a good change to make. Thin
+}
+
} // namespace content
« no previous file with comments | « content/public/browser/url_data_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698