fix: respect image animation policy pref (#30403)

This commit is contained in:
Jeremy Rose 2021-08-09 09:58:03 -07:00 committed by GitHub
parent 08e9aea940
commit e223b4db94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -423,7 +423,7 @@ void WebContentsPreferences::OverrideWebkitPrefs(
blink::web_pref::WebPreferences* prefs) {
prefs->javascript_enabled = javascript_;
prefs->images_enabled = images_;
// GetImageAnimationPolicy(&preference_, &prefs->animation_policy);
prefs->animation_policy = image_animation_policy_;
prefs->text_areas_are_resizable = text_areas_are_resizable_;
prefs->navigate_on_drag_drop = navigate_on_drag_drop_;
prefs->autoplay_policy = autoplay_policy_;