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

Unified Diff: content/shell/shell_content_browser_client.cc

Issue 11316244: [content shell] add support for a testRunner.setXSSAuditorEnabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 1 month 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_view_impl.cc ('k') | content/shell/shell_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_content_browser_client.cc
diff --git a/content/shell/shell_content_browser_client.cc b/content/shell/shell_content_browser_client.cc
index 8c95f624d973f9cd9797b93f6d69705d24cb9b22..401919947714ad1345ab374b2340c95d35995364 100644
--- a/content/shell/shell_content_browser_client.cc
+++ b/content/shell/shell_content_browser_client.cc
@@ -98,9 +98,7 @@ void ShellContentBrowserClient::OverrideWebkitPrefs(
webkit_glue::WebPreferences* prefs) {
if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree))
return;
- prefs->dom_paste_enabled = true;
- prefs->javascript_can_access_clipboard = true;
- prefs->allow_universal_access_from_file_urls = true;
+ WebKitTestController::Get()->web_preferences().Apply(prefs);
}
void ShellContentBrowserClient::ResourceDispatcherHostCreated() {
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/shell/shell_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698