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

Unified Diff: chrome/browser/renderer_security_policy.cc

Issue 12418: Implement History as HTML and add/change a bunch of stuff to make it easier t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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
Index: chrome/browser/renderer_security_policy.cc
===================================================================
--- chrome/browser/renderer_security_policy.cc (revision 6238)
+++ chrome/browser/renderer_security_policy.cc (working copy)
@@ -195,9 +195,9 @@
if (state == security_state_.end())
return;
- // The inspector is served from a chrome-resource: URL. In order to run the
- // inspector, the renderer needs to be able to load chrome-resource URLs.
- state->second->GrantScheme("chrome-resource");
+ // The inspector is served from a chrome: URL. In order to run the
+ // inspector, the renderer needs to be able to load chrome URLs.
+ state->second->GrantScheme("chrome");
}
void RendererSecurityPolicy::GrantDOMUIBindings(int renderer_id) {
@@ -209,8 +209,8 @@
state->second->GrantDOMUIBindings();
- // DOM UI bindings need the ability to request chrome-resource URLs.
- state->second->GrantScheme("chrome-resource");
+ // DOM UI bindings need the ability to request chrome URLs.
+ state->second->GrantScheme("chrome");
// DOM UI pages can contain links to file:// URLs.
state->second->GrantScheme("file");
« no previous file with comments | « chrome/browser/render_view_context_menu_controller.cc ('k') | chrome/browser/renderer_security_policy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698