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

Unified Diff: extensions/renderer/dispatcher.cc

Issue 2623353002: Share schemes needed for mixed content checking between the browser and renderer. (Closed)
Patch Set: remove unused public methods Created 3 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 | « content/renderer/render_thread_impl.cc ('k') | extensions/shell/common/shell_content_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/dispatcher.cc
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc
index a1b2b51ee47ee43a59fec632ec8ab70a01634861..7f45aeba93e3ebc7c59c74476ae1ec58f9da6c88 100644
--- a/extensions/renderer/dispatcher.cc
+++ b/extensions/renderer/dispatcher.cc
@@ -250,17 +250,6 @@ Dispatcher::Dispatcher(DispatcherDelegate* delegate)
// Register WebSecurityPolicy whitelists for the chrome-extension:// scheme.
WebString extension_scheme(base::ASCIIToUTF16(kExtensionScheme));
- // Treat as secure because communication with them is entirely in the browser,
- // so there is no danger of manipulation or eavesdropping on communication
- // with them by third parties.
- WebSecurityPolicy::registerURLSchemeAsSecure(extension_scheme);
-
- // As far as Blink is concerned, they should be allowed to receive CORS
- // requests. At the Extensions layer, requests will actually be blocked unless
- // overridden by the web_accessible_resources manifest key.
- // TODO(kalman): See what happens with a service worker.
- WebSecurityPolicy::registerURLSchemeAsCORSEnabled(extension_scheme);
-
// Resources should bypass Content Security Policy checks when included in
// protected resources. TODO(kalman): What are "protected resources"?
WebSecurityPolicy::registerURLSchemeAsBypassingContentSecurityPolicy(
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | extensions/shell/common/shell_content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698