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

Unified Diff: ios/web/web_state/ui/wk_web_view_configuration_provider.mm

Issue 2265653002: Allow html5 videos to be played inline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/ui/wk_web_view_configuration_provider.mm
diff --git a/ios/web/web_state/ui/wk_web_view_configuration_provider.mm b/ios/web/web_state/ui/wk_web_view_configuration_provider.mm
index c3f6db2d30c689530be997ce0c0cd9d8a5698c96..5016065c7594f2ee5b8d4eb16a5cd2018d4e4014 100644
--- a/ios/web/web_state/ui/wk_web_view_configuration_provider.mm
+++ b/ios/web/web_state/ui/wk_web_view_configuration_provider.mm
@@ -71,6 +71,9 @@ WKWebViewConfigurationProvider::GetWebViewConfiguration() {
WKDataDetectorTypePhoneNumber];
}
#endif
+ if (base::ios::IsRunningOnIOS10OrLater()) {
+ [configuration_ setAllowsInlineMediaPlayback:YES];
Eugene But (OOO till 7-30) 2016/08/19 21:32:11 If this does not break anything on iOS9 we should
+ }
// setJavaScriptCanOpenWindowsAutomatically is required to support popups.
[[configuration_ preferences] setJavaScriptCanOpenWindowsAutomatically:YES];
[[configuration_ userContentController]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698