From 829019400aca367656dd18110d2e7dd845b9d043 Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Thu, 19 Jan 2017 12:26:01 -0800 Subject: [PATCH] Change DomStorageEnabled default value to true Summary: Many websites use domstorage and never think of its unavailability, which usually leads to a blank page on android and hard for developers to debug. I think it's better to enable domstorage by default, for convenience and consistency to iOS and PC. Closes https://github.com/facebook/react-native/pull/11333 Differential Revision: D4437165 Pulled By: hramos fbshipit-source-id: a00441cb5214cca27927471d3a33f030b9ff9b52 --- .../com/facebook/react/views/webview/ReactWebViewManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/webview/ReactWebViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/webview/ReactWebViewManager.java index 9671dac65..81d8e8710 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/webview/ReactWebViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/webview/ReactWebViewManager.java @@ -340,6 +340,7 @@ public class ReactWebViewManager extends SimpleViewManager { mWebViewConfig.configWebView(webView); webView.getSettings().setBuiltInZoomControls(true); webView.getSettings().setDisplayZoomControls(false); + webView.getSettings().setDomStorageEnabled(true); // Fixes broken full-screen modals/galleries due to body height being 0. webView.setLayoutParams(