diff options
author | gdk@chromium.org <gdk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-22 20:39:27 +0000 |
---|---|---|
committer | gdk@chromium.org <gdk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-22 20:39:27 +0000 |
commit | c5f0c9096c638661f472140abeb701acf6e02c40 (patch) | |
tree | 2e20d7711e9722697569994f56d1be91c6361c74 /webkit | |
parent | 1f0b50bc7a139e249d5970454ed9fc2e0d7389f1 (diff) | |
download | chromium_src-c5f0c9096c638661f472140abeb701acf6e02c40.zip chromium_src-c5f0c9096c638661f472140abeb701acf6e02c40.tar.gz chromium_src-c5f0c9096c638661f472140abeb701acf6e02c40.tar.bz2 |
Adding setEnableCookie preference plumbing to webkit glue.
BUG=133650
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10575041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143700 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/glue/webpreferences.cc | 4 | ||||
-rw-r--r-- | webkit/glue/webpreferences.h | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/webkit/glue/webpreferences.cc b/webkit/glue/webpreferences.cc index a4405b0..6516eab 100644 --- a/webkit/glue/webpreferences.cc +++ b/webkit/glue/webpreferences.cc @@ -116,7 +116,8 @@ WebPreferences::WebPreferences() max_untiled_layer_height(512), fixed_position_creates_stacking_context(false), sync_xhr_in_documents_enabled(true), - number_of_cpu_cores(1) { + number_of_cpu_cores(1), + cookie_enabled(true) { standard_font_family_map[kCommonScript] = ASCIIToUTF16("Times New Roman"); fixed_font_family_map[kCommonScript] = @@ -237,6 +238,7 @@ void WebPreferences::Apply(WebView* web_view) const { settings->setOfflineWebApplicationCacheEnabled(application_cache_enabled); settings->setCaretBrowsingEnabled(caret_browsing_enabled); settings->setHyperlinkAuditingEnabled(hyperlink_auditing_enabled); + settings->setCookieEnabled(cookie_enabled); // This setting affects the behavior of links in an editable region: // clicking the link should select it rather than navigate to it. diff --git a/webkit/glue/webpreferences.h b/webkit/glue/webpreferences.h index 766180a..1b68e76 100644 --- a/webkit/glue/webpreferences.h +++ b/webkit/glue/webpreferences.h @@ -136,6 +136,13 @@ struct WEBKIT_GLUE_EXPORT WebPreferences { bool sync_xhr_in_documents_enabled; int number_of_cpu_cores; + // This flags corresponds to a Page's Settings' setCookieEnabled state. It + // only controls whether or not the "document.cookie" field is properly + // connected to the backing store, for instance if you wanted to be able to + // define custom getters and setters from within a unique security content + // without raising a DOM security exception. + bool cookie_enabled; + // We try to keep the default values the same as the default values in // chrome, except for the cases where it would require lots of extra work for // the embedder to use the same default value. |