2014-09-04 19:53:40 +02:00
|
|
|
diff --git public/common/common_param_traits_macros.h public/common/common_param_traits_macros.h
|
2015-10-09 17:23:12 +02:00
|
|
|
index a308f84..bbbe950 100644
|
2014-09-04 19:53:40 +02:00
|
|
|
--- public/common/common_param_traits_macros.h
|
|
|
|
+++ public/common/common_param_traits_macros.h
|
2015-08-14 16:41:08 +02:00
|
|
|
@@ -196,6 +196,7 @@ IPC_STRUCT_TRAITS_BEGIN(content::WebPreferences)
|
2014-09-04 19:53:40 +02:00
|
|
|
IPC_STRUCT_TRAITS_MEMBER(main_frame_resizes_are_orientation_changes)
|
2014-04-08 21:33:48 +02:00
|
|
|
IPC_STRUCT_TRAITS_MEMBER(initialize_at_minimum_page_scale)
|
|
|
|
IPC_STRUCT_TRAITS_MEMBER(smart_insert_delete_enabled)
|
|
|
|
+ IPC_STRUCT_TRAITS_MEMBER(base_background_color)
|
|
|
|
IPC_STRUCT_TRAITS_MEMBER(cookie_enabled)
|
|
|
|
IPC_STRUCT_TRAITS_MEMBER(navigate_on_drag_drop)
|
|
|
|
IPC_STRUCT_TRAITS_MEMBER(spatial_navigation_enabled)
|
2014-09-04 19:53:40 +02:00
|
|
|
diff --git public/common/web_preferences.cc public/common/web_preferences.cc
|
2015-10-09 17:23:12 +02:00
|
|
|
index deb82db..2da2957 100644
|
2014-09-04 19:53:40 +02:00
|
|
|
--- public/common/web_preferences.cc
|
|
|
|
+++ public/common/web_preferences.cc
|
2015-10-09 17:23:12 +02:00
|
|
|
@@ -176,6 +176,7 @@ WebPreferences::WebPreferences()
|
2015-03-19 23:06:16 +01:00
|
|
|
pinch_overlay_scrollbar_thickness(0),
|
2014-09-04 19:53:40 +02:00
|
|
|
use_solid_color_scrollbars(false),
|
|
|
|
navigate_on_drag_drop(true),
|
|
|
|
+ base_background_color(0xFFFFFFFF), // Color::white
|
2014-12-13 21:18:31 +01:00
|
|
|
v8_cache_options(V8_CACHE_OPTIONS_DEFAULT),
|
2015-08-26 00:33:31 +02:00
|
|
|
slimming_paint_v2_enabled(false),
|
2015-10-09 17:23:12 +02:00
|
|
|
inert_visual_viewport(false),
|
2014-09-04 19:53:40 +02:00
|
|
|
diff --git public/common/web_preferences.h public/common/web_preferences.h
|
2015-10-09 17:23:12 +02:00
|
|
|
index 75012d1..8da71be 100644
|
2014-09-04 19:53:40 +02:00
|
|
|
--- public/common/web_preferences.h
|
|
|
|
+++ public/common/web_preferences.h
|
2015-08-14 16:41:08 +02:00
|
|
|
@@ -173,6 +173,7 @@ struct CONTENT_EXPORT WebPreferences {
|
2015-03-19 23:06:16 +01:00
|
|
|
int pinch_overlay_scrollbar_thickness;
|
2014-09-04 19:53:40 +02:00
|
|
|
bool use_solid_color_scrollbars;
|
|
|
|
bool navigate_on_drag_drop;
|
|
|
|
+ uint32_t base_background_color;
|
|
|
|
V8CacheOptions v8_cache_options;
|
2015-08-26 00:33:31 +02:00
|
|
|
bool slimming_paint_v2_enabled;
|
2015-10-09 17:23:12 +02:00
|
|
|
bool inert_visual_viewport;
|
2014-09-04 19:53:40 +02:00
|
|
|
diff --git renderer/render_view_impl.cc renderer/render_view_impl.cc
|
2015-10-09 17:23:12 +02:00
|
|
|
index d6d5d6e..82b499e 100644
|
2014-09-04 19:53:40 +02:00
|
|
|
--- renderer/render_view_impl.cc
|
|
|
|
+++ renderer/render_view_impl.cc
|
2015-10-09 17:23:12 +02:00
|
|
|
@@ -949,6 +949,8 @@ void RenderView::ApplyWebPreferences(const WebPreferences& prefs,
|
|
|
|
settings->setCookieEnabled(prefs.cookie_enabled);
|
|
|
|
settings->setNavigateOnDragDrop(prefs.navigate_on_drag_drop);
|
2014-04-08 21:33:48 +02:00
|
|
|
|
|
|
|
+ web_view->setBaseBackgroundColor(prefs.base_background_color);
|
|
|
|
+
|
2014-04-30 19:14:40 +02:00
|
|
|
// By default, allow_universal_access_from_file_urls is set to false and thus
|
|
|
|
// we mitigate attacks from local HTML files by not granting file:// URLs
|
|
|
|
// universal access. Only test shell will enable this.
|