From c05e0e3963bd8d7be8348ce9dd22836fc2587231 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Thu, 12 Dec 2019 16:28:05 +0100 Subject: [PATCH] updated DropDown workaround: load it as soon as possible and load also for iframes where possibile (same origin) --- .idea/misc.xml | 2 +- .idea/workspace.xml | 131 +-- README.md | 2 +- .../InAppWebView/InAppWebView.java | 834 +++++++++--------- .../InAppWebView/InAppWebViewClient.java | 7 +- lib/src/webview_options.dart | 1 + 6 files changed, 491 insertions(+), 486 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index bfa5e6bb..eac9d8a9 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -35,7 +35,7 @@ - + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 85e1f47a..9995527d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -16,9 +16,13 @@ + + + + @@ -35,14 +39,14 @@ - + - - + + @@ -65,8 +69,8 @@ - - + + @@ -98,7 +102,7 @@ - + @@ -110,8 +114,13 @@ - - + + + + + + + @@ -137,7 +146,6 @@ - _staticChannel defa InAppWebViewStatic removeFromSuperview @@ -167,6 +175,7 @@ \n dropDownWorkaroundEnabled debuggingEnabled + \n" + activity.getPreferences(0) @@ -176,6 +185,7 @@ Event fired flutterInAppWebViewPlatformReady flutter_inappwebview + " + $PROJECT_DIR$/example/android @@ -254,39 +264,6 @@ - - - - - - - - - - - - - - - - - - - - - - @@ -317,6 +294,39 @@ + + + + + + + + + + + + + + + + + + + + + + ` tags) (available on Android 19+). It requires **JavaScript enabled**. It attempts to block click events for the dropdowns creating a custom `
` layer over the dropdown to intercept user's clicks. The default value is `false`. +* `dropDownWorkaroundEnabled`: Enable a temporary workaround for html dropdowns (`` tags). It requires **JavaScript enabled**. ///It attempts to block click events for the dropdowns creating a custom `
` layer over the dropdown to intercept user's clicks. + ///This workaround is applied as soon as the web page fires the `DOMContentLoaded` JavaScript event. ///The default value is `false`. /// ///**NOTE**: available on Android 19+.