summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-24 22:31:08 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-24 22:31:08 +0000
commit637db9e5e571c5820fddb7cd0f1f6f132ff62741 (patch)
tree3ee5cf240185341d8bfb7fe2249b254897aacf6d
parent42cbc84334ad96afbdc02695ada603df8a13bb0c (diff)
downloadchromium_src-637db9e5e571c5820fddb7cd0f1f6f132ff62741.zip
chromium_src-637db9e5e571c5820fddb7cd0f1f6f132ff62741.tar.gz
chromium_src-637db9e5e571c5820fddb7cd0f1f6f132ff62741.tar.bz2
Make new chrome UI security model the default.
allows us to update URL in chrome://settings when the user navigates within it. BUG=57485 TEST=manual Review URL: http://codereview.chromium.org/6266017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72405 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/renderer_host/browser_render_process_host.cc1
-rw-r--r--chrome/browser/resources/options/options_page.js3
-rw-r--r--chrome/common/chrome_switches.cc3
-rw-r--r--chrome/common/chrome_switches.h1
-rw-r--r--chrome/renderer/render_thread.cc7
5 files changed, 3 insertions, 12 deletions
diff --git a/chrome/browser/renderer_host/browser_render_process_host.cc b/chrome/browser/renderer_host/browser_render_process_host.cc
index 3ebcacf..e651ccc 100644
--- a/chrome/browser/renderer_host/browser_render_process_host.cc
+++ b/chrome/browser/renderer_host/browser_render_process_host.cc
@@ -721,7 +721,6 @@ void BrowserRenderProcessHost::PropagateBrowserCommandLineToRenderer(
switches::kRemoteShellPort,
switches::kEnablePepperTesting,
switches::kAllowOutdatedPlugins,
- switches::kNewChromeUISecurityModel,
switches::kEnableRemoting,
switches::kEnableClickToPlay,
switches::kEnableResourceContentSettings,
diff --git a/chrome/browser/resources/options/options_page.js b/chrome/browser/resources/options/options_page.js
index 748fcb5..4fa70d3 100644
--- a/chrome/browser/resources/options/options_page.js
+++ b/chrome/browser/resources/options/options_page.js
@@ -498,7 +498,8 @@ cr.define('options', function() {
OptionsPage.updateManagedBannerVisibility();
// Recent webkit change no longer allows url change from "chrome://".
- window.history.pushState({pageName: this.name}, this.title);
+ window.history.pushState({pageName: this.name}, this.title,
+ '/' + this.name);
}
if (this.tab) {
this.tab.classList.add('navbar-item-selected');
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 64524ee..abb57d0 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -850,9 +850,6 @@ const char kNaClLoaderProcess[] = "nacl-loader";
// Causes the Native Client process to display a dialog on launch.
const char kNaClStartupDialog[] = "nacl-startup-dialog";
-// Enables the new security model for "chrome" URLs.
-const char kNewChromeUISecurityModel[] = "new-chrome-ui-security-model";
-
// Disables the default browser check. Useful for UI/browser tests where we
// want to avoid having the default browser info-bar displayed.
const char kNoDefaultBrowserCheck[] = "no-default-browser-check";
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index 1d718d5..9536841 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -244,7 +244,6 @@ extern const char kNaClDebugPorts[];
extern const char kNaClBrokerProcess[];
extern const char kNaClLoaderProcess[];
extern const char kNaClStartupDialog[];
-extern const char kNewChromeUISecurityModel[];
extern const char kNoDefaultBrowserCheck[];
extern const char kNoEvents[];
extern const char kNoExperiments[];
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index a80fc7bd..fd55fe8 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -864,12 +864,7 @@ void RenderThread::EnsureWebKitInitialized() {
// also be unable to script anything but themselves (to help limit the damage
// that a corrupt chrome: page could cause).
WebString chrome_ui_scheme(ASCIIToUTF16(chrome::kChromeUIScheme));
- if (command_line.HasSwitch(switches::kNewChromeUISecurityModel)) {
- WebSecurityPolicy::registerURLSchemeAsDisplayIsolated(chrome_ui_scheme);
- } else {
- WebSecurityPolicy::registerURLSchemeAsLocal(chrome_ui_scheme);
- WebSecurityPolicy::registerURLSchemeAsNoAccess(chrome_ui_scheme);
- }
+ WebSecurityPolicy::registerURLSchemeAsDisplayIsolated(chrome_ui_scheme);
// chrome-extension: resources shouldn't trigger insecure content warnings.
WebString extension_scheme(ASCIIToUTF16(chrome::kExtensionScheme));