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

Unified Diff: chrome/plugin/webplugin_proxy.cc

Issue 18070: Block Adobe Reader from issuing NPN_GetURL/NPN_GetURLRequests for URL schemes... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 | « no previous file | webkit/glue/plugins/webplugin_delegate_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/plugin/webplugin_proxy.cc
===================================================================
--- chrome/plugin/webplugin_proxy.cc (revision 8153)
+++ chrome/plugin/webplugin_proxy.cc (working copy)
@@ -237,6 +237,19 @@
return;
}
+ if (!target && (0 == _strcmpi(method, "GET"))) {
+ // Please refer to https://bugzilla.mozilla.org/show_bug.cgi?id=366082
+ // for more details on this.
+ if (delegate_->quirks() &
+ WebPluginDelegateImpl::PLUGIN_QUIRK_BLOCK_NONSTANDARD_GETURL_REQUESTS) {
+ GURL request_url(url);
+ if (!request_url.SchemeIs("http") && !request_url.SchemeIs("https") &&
+ !request_url.SchemeIs("ftp")) {
+ return;
+ }
+ }
+ }
+
PluginHostMsg_URLRequest_Params params;
params.method = method;
params.is_javascript_url = is_javascript_url;
« no previous file with comments | « no previous file | webkit/glue/plugins/webplugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698