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

Unified Diff: chrome/common/pref_names.cc

Issue 8716004: Add per-tab "JavaScript enabled" preference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved per-tab prefs into a helper Created 9 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
Index: chrome/common/pref_names.cc
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc
index 576f3babe3920ad31b1d68ad06bd697b581d3f42..f232352c8817be38ba2e668e263b782a17100ed0 100644
--- a/chrome/common/pref_names.cc
+++ b/chrome/common/pref_names.cc
@@ -186,7 +186,8 @@ const char kWebKitDefaultFixedFontSize[] =
const char kWebKitMinimumFontSize[] = "webkit.webprefs.minimum_font_size";
const char kWebKitMinimumLogicalFontSize[] =
"webkit.webprefs.minimum_logical_font_size";
-const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled";
+const char kWebKitGlobalJavascriptEnabled[] =
+ "webkit.webprefs.global.javascript_enabled";
const char kWebKitWebSecurityEnabled[] = "webkit.webprefs.web_security_enabled";
const char kWebKitJavascriptCanOpenWindowsAutomatically[] =
"webkit.webprefs.javascript_can_open_windows_automatically";
@@ -208,6 +209,9 @@ const char kWebKitAllowDisplayingInsecureContent[] =
const char kWebKitAllowRunningInsecureContent[] =
"webkit.webprefs.allow_running_insecure_content";
+// Settings below can be overridden for each tab individually.
+const char kWebKitJavascriptEnabled[] = "webkit.webprefs.javascript_enabled";
+
// Boolean which specifies whether the bookmark bar is visible on all tabs.
const char kShowBookmarkBar[] = "bookmark_bar.show_on_all_tabs";
« chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.cc ('K') | « chrome/common/pref_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698