enabling dom storage api

This commit is contained in:
tobiasKaminsky 2017-08-01 12:06:52 +02:00
parent 12cd1ba651
commit bd897d856c
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
4 changed files with 7 additions and 3 deletions

View file

@ -367,6 +367,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
mLoginWebView.getSettings().setAllowFileAccess(false);
mLoginWebView.getSettings().setJavaScriptEnabled(true);
mLoginWebView.getSettings().setDomStorageEnabled(true);
mLoginWebView.getSettings().setUserAgentString(getWebLoginUserAgent());
mLoginWebView.getSettings().setSaveFormData(false);
mLoginWebView.getSettings().setSavePassword(false);

View file

@ -110,7 +110,8 @@ public class ExternalSiteWebView extends FileActivity {
webSettings.setAllowFileAccess(false);
// enable javascript
webview.getSettings().setJavaScriptEnabled(true);
webSettings.setJavaScriptEnabled(true);
webSettings.setDomStorageEnabled(true);
final Activity activity = this;
final ProgressBar progressBar = (ProgressBar) findViewById(R.id.progressBar);

View file

@ -271,6 +271,7 @@ public class WhatsNewActivity extends FragmentActivity implements ViewPager.OnPa
WebView webView = (WebView) v.findViewById(R.id.whatsNewWebView);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setDomStorageEnabled(true);
webView.getSettings().setAllowFileAccess(false);
webView.setWebViewClient(new WebViewClient());
webView.loadUrl(mWebUrl);

View file

@ -138,6 +138,7 @@ public class SamlWebViewDialog extends DialogFragment {
WebSettings webSettings = mSsoWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setDomStorageEnabled(true);
webSettings.setSavePassword(false);
webSettings.setUserAgentString(MainApp.getUserAgent());
webSettings.setSaveFormData(false);
@ -184,8 +185,8 @@ public class SamlWebViewDialog extends DialogFragment {
@Override
public void onDestroyView() {
Log_OC.v(TAG, "onDestroyView");
if ((ViewGroup)mSsoWebView.getParent() != null) {
if (mSsoWebView.getParent() != null) {
((ViewGroup)mSsoWebView.getParent()).removeView(mSsoWebView);
}