experimental_webgl_enabled is not supported, now use webgl1/2_enabled

This commit is contained in:
Samuel Attard 2017-12-18 12:47:10 +11:00 committed by Aleksei Kuzmin
parent e65815e34c
commit 1158d35021
2 changed files with 6 additions and 3 deletions

View file

@ -203,7 +203,8 @@ void AtomBrowserClient::OverrideWebkitPrefs(
prefs->application_cache_enabled = true;
prefs->allow_universal_access_from_file_urls = true;
prefs->allow_file_access_from_file_urls = true;
prefs->experimental_webgl_enabled = true;
prefs->webgl1_enabled = true;
prefs->webgl2_enabled = true;
prefs->allow_running_insecure_content = false;
// Custom preferences of guest page.

View file

@ -293,8 +293,10 @@ void WebContentsPreferences::OverrideWebkitPrefs(
prefs->images_enabled = b;
if (self->web_preferences_.GetBoolean("textAreasAreResizable", &b))
prefs->text_areas_are_resizable = b;
if (self->web_preferences_.GetBoolean("webgl", &b))
prefs->experimental_webgl_enabled = b;
if (self->web_preferences_.GetBoolean("webgl", &b)) {
prefs->webgl1_enabled = b;
prefs->webgl2_enabled = b;
}
if (self->web_preferences_.GetBoolean("webSecurity", &b)) {
prefs->web_security_enabled = b;
prefs->allow_running_insecure_content = !b;