@capgo/capacitor-inappbrowser 8.6.21 → 8.6.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1416,6 +1416,8 @@ public class WebViewDialog extends Dialog implements ProxyResponseRouting.ProxyR
1416
1416
  }
1417
1417
 
1418
1418
  private void downloadUrlToFile(String url, String userAgent, String contentDisposition, String mimeType) {
1419
+ // WebView methods must run on the main thread; capture the page URL before the background download starts.
1420
+ final String pageUrl = currentManagedDownloadPageUrl();
1419
1421
  executorService.execute(() -> {
1420
1422
  HttpURLConnection connection = null;
1421
1423
  InputStream inputStream = null;
@@ -1423,7 +1425,6 @@ public class WebViewDialog extends Dialog implements ProxyResponseRouting.ProxyR
1423
1425
  boolean downloadSucceeded = false;
1424
1426
 
1425
1427
  try {
1426
- String pageUrl = currentManagedDownloadPageUrl();
1427
1428
  String currentUrl = url;
1428
1429
  int redirectsFollowed = 0;
1429
1430
  while (true) {
@@ -98,7 +98,7 @@ public class CapgoInAppBrowserPlugin: CAPPlugin, CAPBridgedPlugin {
98
98
  case aware = "AWARE"
99
99
  case fakeVisible = "FAKE_VISIBLE"
100
100
  }
101
- private let pluginVersion: String = "8.6.21"
101
+ private let pluginVersion: String = "8.6.23"
102
102
  public let identifier = "CapgoInAppBrowserPlugin"
103
103
  public let jsName = "CapgoInAppBrowser"
104
104
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-inappbrowser",
3
- "version": "8.6.21",
3
+ "version": "8.6.23",
4
4
  "description": "Capacitor plugin in app browser",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",